public async Task <IActionResult> Communication(bool isSucceess = false, int id = 0, int Val = 0) { string user = User.FindFirst("Index").Value; var Currentuser = await _taskRepository.GetCurrentUser(user); int EmpId = Currentuser.EmpId; ViewBag.Emps = new SelectList(await _taskRepository.GetEmps(EmpId), "EmpId", "EmpFullName"); if (id != 0) { int ComId = await _taskRepository.AddValForCommunication(id, Val, EmpId); if (ComId > 0) { return(RedirectToAction(nameof(Communication), new { isSucceess = true })); } } ViewBag.IsSuccess = isSucceess; return(View()); }