Esempio n. 1
0
 public IActionResult Edit(int id)
 {
     try{
         var re = objStudent.GetEmployee(id);
         if (re != null)
         {
             return(Ok(re));
         }
         return(NotFound());
     }catch {
         return(NotFound());
     }
 }
Esempio n. 2
0
 public IActionResult Edit(int id)
 {
     return(View(objStudent.GetEmployee(id)));
 }