Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }