예제 #1
0
        public IActionResult Update(int eno)
        {
            Employee employee = new Employee();

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