public ActionResult Index(string startDate, string EndDate, string EmpId) { var EmpList = (from b in saService.GetAll() select new EmpViewModel { UserIdTemp = b.UserId, UserNameTemp = b.UserName }).ToList(); ViewBag.EmpList = EmpList; return(View(visitService.GetAll(startDate, EndDate, EmpId))); }
public ActionResult <List <Visit> > Get() => _visitService.GetAll();