Ejemplo n.º 1
0
 //drop down for Department
 private List <SelectListItem> GetStudentlist()
 {
     return(_rentalManager.GetAllStudent()
            .Select(c => new SelectListItem()
     {
         Value = c.Id.ToString(), Text = c.FirstName + c.LastName
     }).ToList());
 }