public IActionResult Update(int eno) { Employee employee = new Employee(); if (eno != 0) { employee = _emprepo.GetEmployee(eno); } return(View(employee)); }
public IActionResult GetEmployee(string id) { try { return(Ok(_repo.GetEmployee(id))); } catch (Exception e) { return(NotFound(e.Message)); } }
public IEnumerable <Emp> GetEmployee(int id) { return(_empRepository.GetEmployee(id)); }