public List <SelectListItem> GetListOfTechnicians() { var peopleQueriesService = new PeopleQueriesService(); var listOfTechnicians = peopleQueriesService.GetListTechnicians(); var techniciansList = listOfTechnicians.ConvertAll(data => new SelectListItem { Text = data.nameTechnician, Value = data.keyTechnician.ToString(), Selected = false }); return(techniciansList); }
public List <SelectListItem> GetListOfClients() { var peopleQueriesService = new PeopleQueriesService(); var listOfClients = peopleQueriesService.GetListClients(); var clientList = listOfClients.ConvertAll(data => new SelectListItem { Text = data.GetClientFullViewModel(), Value = data.keyClient.ToString(), Selected = false }); return(clientList); }