Ejemplo n.º 1
0
 public ActionResult Delete(EIdDTO model)
 {
     if (_postService.AnyPostByCategoryId(model.Id) == false)
     {
         _categoryService.Delete(model.Id);
         _uow.SaveChanges();
         return(Json(true, JsonRequestBehavior.AllowGet));
     }
     else
     {
         return(Json(false, JsonRequestBehavior.AllowGet));
     }
 }
Ejemplo n.º 2
0
 public ActionResult Delete(EIdDTO model)
 {
     _postService.Delete(model.Id);
     _uow.SaveChanges();
     return(Json(true, JsonRequestBehavior.AllowGet));
 }