Beispiel #1
0
 public ActionResult DeleteEmployee(int Id)
 {
     try
     {
         if (serviceObject.DeleteEmployeeById(Id))
         {
             return(RedirectToAction("Index"));
         }
         else
         {
             return(Content("Something Went worng!"));
         }
     }
     catch (Exception ex)
     {
         throw;
     }
     // return View();
 }