private static bool HasNoChildren(Day d) { return(d.JobDetails.Count == 0); }
private static async Task BuildRelations(Day entity, TimeKeeperContext context) { entity.Employee = await context.Employees.FindAsync(entity.Employee.Id); entity.DayType = await context.DayTypes.FindAsync(entity.DayType.Id); }
private static void UpdateRelations(Day oldEnt, Day newEnt) { oldEnt.Employee = newEnt.Employee; oldEnt.DayType = newEnt.DayType; }