public ActionResult Details(Int32 EmployeeId) { UserModel _usermodel = new UserModel(); CCIRepository _repository = CCIRepository.CreateRepository(); _usermodel = _repository.getSingleEmployeeDetail(EmployeeId); return(View(_usermodel)); }
public ActionResult Delete(Int32 EmployeeId) { UserModel _usermodel = new UserModel(); try { CCIRepository repository = CCIRepository.CreateRepository(); _usermodel = repository.getSingleEmployeeDetail(EmployeeId); } catch (Exception ex) { } return(View(_usermodel)); }