public async Task <IActionResult> GetTasks(bool success = false, bool delete = false, bool search = false, int count = 20, int emp = 0, int proj = 0, String state = null) { ViewBag.Success = success; ViewBag.Delete = delete; ViewBag.search = search; ViewBag.employees = new SelectList(await _repo2.GetDevelopers(), "Id", "Name"); ViewBag.projects = new SelectList(await _repo.GetProjects(), "Id", "Name"); var data = await _repo2.GetTasks(count, emp, proj, state); return(View(data)); }