Ejemplo n.º 1
0
 public SelectList GetInterviewerSelectList(short?selectedValue = null)
 {
     return(new SelectList(InterviewerService.GetAll().ToList(), "Id", "Name", selectedValue));
 }
        //
        // GET: /Interviewer/

        public ActionResult Interviewers()
        {
            var model = service.GetAll().Select(e => new { e.Id, e.Name, e.Description }).ToList();

            return(View(model));
        }