Last active
September 5, 2019 02:15
-
-
Save bruceharrison1984/289c8b8fbe5b580199ba59a0eae92c2f to your computer and use it in GitHub Desktop.
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
using System; | |
namespace WidgetApi.Models | |
{ | |
public abstract class ModelBase | |
{ | |
public int Id { get; set; } | |
public int CreatedBy { get; set; } | |
public DateTime CreatedOn { get; set; } | |
public int? UpdatedBy { get; set; } | |
public DateTime? UpdatedOn { get; set; } | |
} | |
public class User : ModelBase | |
{ | |
public string GivenName { get; set; } | |
public string JobTitle {get; set; } | |
public string Mail {get; set; } | |
public string Surname { get; set; } | |
} | |
public class Widget : ModelBase | |
{ | |
public string Title { get; set; } | |
public string Description { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment