public HttpResponseMessage Delete(int itemId)
        {
            var item = _repository.GetItem(itemId, ActiveModule.ModuleID);

            _repository.DeleteItem(item);

            return(Request.CreateResponse(HttpStatusCode.OK, "success"));
        }
Exemple #2
0
        public HttpResponseMessage Delete(ItemViewModel item)
        {
            int moduleId = 0;
            var delItem  = _repository.GetItem(item.Id, moduleId);

            _repository.DeleteItem(delItem);

            return(Request.CreateResponse(HttpStatusCode.OK, new { itemId = delItem.MenuItemId }));
        }
Exemple #3
0
 public ActionResult Delete(int itemId)
 {
     _menuDataRepository.DeleteItem(itemId, CurrentModuleId);
     return(RedirectToDefaultRoute());
 }
Exemple #4
0
 public ActionResult Delete(int itemId)
 {
     _menuController.DeleteItem(itemId, CurrentModuleId);
     return(RedirectToDefaultRoute());
 }