public string Delete(string[] ids) { try { _app.Delete(ids); } catch (Exception e) { Result.Code = 500; Result.Message = e.Message; } return(JsonHelper.Instance.Serialize(Result)); }
public Response Delete([FromBody] string[] ids) { var result = new Response(); try { _app.Delete(ids); } catch (Exception ex) { result.Code = 500; result.Message = ex.InnerException?.Message ?? ex.Message; } return(result); }
public JsonResult Delete(string logId) { JsonMessage jsonMsg = _logApp.Delete(logId); return(Json(jsonMsg, JsonRequestBehavior.AllowGet)); }