示例#1
0
 public HttpResponseMessage MathDelete(int mathId)
 {
     try
     {
         MathService svc = new MathService();
         svc.Delete(mathId);
         SuccessResponse resp = new SuccessResponse();
         return(Request.CreateResponse(HttpStatusCode.OK, resp));
     }
     catch (Exception e)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, e.Message));
     }
 }