예제 #1
0
 public JsonResult Delete(Guid kInsuranceId)
 {
     try
     {
         //Thread.Sleep(50);
         InsuranceManager.Delete(kInsuranceId);
         return(Json(new { Result = "OK" }));
     }
     catch (Exception ex)
     {
         return(Json(new { Result = "ERROR", Message = ex.Message }));
     }
 }
예제 #2
0
 public IActionResult Delete(int id)
 {
     if (id == 0)
     {
         return(BadRequest("Invalid Id"));
     }
     try
     {
         var result = _insuranceManager.Delete(id);
         return(Ok(result));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }