public static short GetFinalEmailMinutes(this WorkHoursFields whf) { if (whf.EmailAdjustedHours > 0 || whf.EmailAdjustedMinutes > 0) { return(whf.EmailAdjustedMinutes); } return(whf.EmailMinutes); }
public static short GetFinalOtherHours(this WorkHoursFields whf) { if (whf.OtherAdjustedMinutes > 0 || whf.OtherAdjustedHours > 0) { return(whf.OtherAdjustedHours); } return(whf.OtherHours); }
public static short GetFinalMeetingMinutes(this WorkHoursFields whf) { if (whf.MeetingAdjustedMinutes > 0 || whf.MeetingAdjustedHours > 0) { return(whf.MeetingAdjustedMinutes); } return(whf.MeetingMinutes); }
public WorkHours() { // Constructor code Fields = new WorkHoursFields(); }