Beispiel #1
0
      public JsonResult Delete(int id)
      {
          var _repo = new HtmlTypesManager();
          var item  = _repo.GetById(id);

          if (item.Id > 0)
          {
              _repo.Delete(item.Id);
              return(Json(true));
          }
          else
          {
              return(Json(false));
          }
      }
Beispiel #2
0
      public JsonResult GetAll()
      {
          var _repo = new HtmlTypesManager();

          return(Json(new { data = _repo.GetAll() }));
      }