Last active
August 6, 2017 18:14
-
-
Save DevEarley/9ba723fc08297384516eaf5842d8ecbf to your computer and use it in GitHub Desktop.
Some Response Model
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ItemResponseModel | |
{ | |
public int ItemID; | |
public string Name; | |
public string Message; | |
public static ItemResponseModel ToResponseModel(Item _Item) { | |
return new ItemResponseModel { | |
ItemID = _Item.ItemID, | |
Name = _Item.Name, | |
Message = _Item.Message | |
}; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment