/// <summary> /// Creates a case for the given employee and dates /// </summary> /// <param name="employeeId"></param> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <returns></returns> public static EmployeeCase CreateCase(int employeeId, DateTime startDate, DateTime endDate) { EmployeeCase theCase = new EmployeeCase() { StartDate = startDate, EndDate = endDate, EmployeeId = employeeId }; theCase.GenerateCaseNumber(); theCase.CalculateApprovedTime(); throw new NotImplementedException("Employee Case Save Is Not Implemented"); return(theCase); }
public static EmployeeCase CreateCase(long employeeId, DateTime startDate, DateTime endDate) { EmployeeCase theCase = new EmployeeCase() { StartDate = startDate, EndDate = endDate, EmployeeId = employeeId }; theCase.GenerateCaseNumber(); theCase.CalculateApprovedTime(); // save the case return(theCase); }