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));
        }
예제 #2
0
 public Emp Get(int id)
 {
     return(_empRepository.GetEmpById(id));
 }
예제 #3
0
        public async Task <IActionResult> ViewEmp(EmpModel empModel)
        {
            var data = await _empRepository.GetEmpById(empModel.EmpId);

            return(View(data));
        }
예제 #4
0
        public async Task <IActionResult> DeletedEmpById(int id)
        {
            var data = await _empRepository.GetEmpById(id);

            return(View(data));
        }