Beispiel #1
0
 public JsonResult DelPrescriptions(string id)
 {
     try
     {
         client.DeletePrescriptions(id);
         return(Json(new { success = true }));
     }
     catch (FaultException ex)
     {
         return(Json(new { success = false, message = ex.Message }));
     }
     catch (Exception ex)
     {
         return(Json(new { success = false, message = ex.Message }));
     }
 }