public async Task <IActionResult> SeeLeaveAllocation(int id, bool isUpdate = false) { ViewBag.Rcount = _leaveRepository.leaveRecomCount(); ViewBag.Acount = _leaveRepository.leaveAppCount(); ViewBag.IsUpdate = isUpdate; var data = await _empRepository.GetEmpById(id); return(View(data)); }
public Emp Get(int id) { return(_empRepository.GetEmpById(id)); }
public async Task <IActionResult> ViewEmp(EmpModel empModel) { var data = await _empRepository.GetEmpById(empModel.EmpId); return(View(data)); }
public async Task <IActionResult> DeletedEmpById(int id) { var data = await _empRepository.GetEmpById(id); return(View(data)); }