Ejemplo n.º 1
0
 public ActionResult Delete(Guid id)
 {
     _logger.Trace("/Person/Delete (post) called");
     try
     {
         if (_personHandler.Delete(id) == ServiceResultEnum.Failure)
         {
             throw new Exception("Failed to delete person - " + id.ToByteArray());
         }
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         return(RedirectToAction("Index"));
     }
 }