Esempio n. 1
0
 public IHttpActionResult Delete(int id)
 {
     try
     {
         _templateServices.DeleteTemplate(id);
         _UoW.Commit();
         return(Ok());
     }
     catch (Exception ex)
     {
         return(InternalServerError(ex));
     }
 }
Esempio n. 2
0
 public JsonResult Delete(int id)
 {
     return(Json(_templateServices.DeleteTemplate(id)));
 }