Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Timecard:
- {
- public class Timecard
- {
- public int Id { get; set; }
- public string UserId { get; set; }
- public DateTime StartDate { get; set; }
- public DateTime EndDate { get; set; }
- public Status Status {get;set;}
- public int TotalHours { get; set; }
- public virtual List<Workday> Workdays { get; set; }
- }
- public enum Status
- {
- Submitted, Denied, Approved
- }
- }
- TimecardEntry:
- public class Workday
- {
- public int Id { get; set; }
- public int TimecardId { get; set; }
- public DateTime Date { get; set; }
- public int Hours { get; set; }
- public virtual Timecard Timecard { get; set; }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement