// GET: Interview public ActionResult Index(string searchBy, string search) { var inter = new List <InterviewVM>(); foreach (Interview ivm in Service.GetInterviewByLocationAndType(search, searchBy)) { inter.Add(new InterviewVM() { InterviewId = ivm.InterviewId, User_Id = ivm.User_Id, Candidat_Id = ivm.Candidat_Id, Interview_Date = ivm.Interview_Date, Interview_Location = ivm.Interview_Location, Interview_Type = (TypeVM)ivm.Interview_Type }); } return(View(inter)); }