public TimeEntryViewModel(_RetrieveTimeEntryViewModel retrieveModel)
 {
     ConstructClass(context.Employees.FirstOrDefault(empl => retrieveModel.EmployeeId == empl.EmployeeID), retrieveModel.StartDate, retrieveModel.EndDate);
     RetrieveTimeEntry = new _RetrieveTimeEntryViewModel(retrieveModel.StartDate, retrieveModel.EndDate);
     if (retrieveModel.Contract != "ALL")
     {
         RetrieveTimeEntry.Contract = context.Contracts.FirstOrDefault(contract => contract.ContractID.ToString() == retrieveModel.Contract).Contract;
     }
     if (retrieveModel.Service != "ALL")
     {
         RetrieveTimeEntry.Service = retrieveModel.Service;
     }
     if (retrieveModel.Client != "ALL")
     {
         RetrieveTimeEntry.Client = context.Clients.FirstOrDefault(client => client.ClientID.ToString() == retrieveModel.Client).ClientName;
     }
     RetrieveTimeEntry.Employee = retrieveModel.Employee;
     FillRetrieveTimeEntry();
     //RetrieveTimeEntry. = retrieveModel;
     //if(retrieveModel.Employee == "ALL")
 }
 public TimeEntryViewModel(Employee employee, DateTime start, DateTime end)
 {
     ConstructClass(employee, start, end);
     RetrieveTimeEntry = new _RetrieveTimeEntryViewModel(start, end);
     FillRetrieveTimeEntry();
 }