Ejemplo n.º 1
0
 public HttpResponseMessage Delete(int id)
 {
     try
     {
         _helpService.Delete(id);
         return(Request.CreateResponse(HttpStatusCode.OK, new SuccessResponse()));
     }
     catch (Exception ex)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.BadRequest, ex));
     }
 }
Ejemplo n.º 2
0
 public virtual JsonResult DeleteViewsHelpData(int[] ids)
 {
     return(Json(_helpService.Delete(ids), JsonRequestBehavior.AllowGet));
 }