private List <SelectListItem> GetSpecializari() { var services = specializareServices.GetAll(); return(services.Select(c => new SelectListItem { Text = c.Nume, Value = c.Id.ToString() }) .ToList()); }
public IActionResult Index() { var specializari = specializareServices.GetAll(); return(View(specializari)); }