/// <summary> /// Get all data to fill combo box /// </summary> /// <param name="error"></param> /// <returns></returns> public List <ModelNotifiedForEmployees> GetAll_Employees(out string error) { EmployeesGenericREST EmployeesGenericREST = new EmployeesGenericREST(wpfConfig); List <ModelNotifiedForEmployees> modelNotifiedForEmployees = EmployeesGenericREST.GetAll <ModelNotifiedForEmployees>(100, 0, out error); return(modelNotifiedForEmployees); }
public List <ModelNotifiedForEmployees> GetAllEmployees(out string error) { EmployeesGenericREST EmployeesGenericREST = new EmployeesGenericREST(wpfConfig); List <ModelNotifiedForEmployees> modelNotifiedForEmployees = EmployeesGenericREST.GetAll <ModelNotifiedForEmployees>(100, 0, out error); if (!string.IsNullOrEmpty(error)) { return(null); } //Initializing row status foreach (var item in modelNotifiedForEmployees) { item.ItemChanged = false; item.NewItem = false; } return(modelNotifiedForEmployees); }