Skip to content

Instantly share code, notes, and snippets.

@bruceharrison1984
Last active September 5, 2019 02:15
Show Gist options
  • Save bruceharrison1984/289c8b8fbe5b580199ba59a0eae92c2f to your computer and use it in GitHub Desktop.
Save bruceharrison1984/289c8b8fbe5b580199ba59a0eae92c2f to your computer and use it in GitHub Desktop.
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