public IHttpActionResult Delete(int id) { try { return(Ok(shareService.Delete(id))); } catch (Exception e) { throw new Exception(e.Message); } }
public Result Delete(Shares mf) { var result = new Result(); try { ShareService SharesService = new ShareService(); SharesService.Delete(mf); result.IsSuccess = true; } catch (Exception exception) { result.IsSuccess = false; result.ExceptionInfo = exception; } return(result); }