public HttpResponseMessage Delete(int itemId) { var item = _repository.GetItem(itemId, ActiveModule.ModuleID); _repository.DeleteItem(item); return(Request.CreateResponse(HttpStatusCode.OK, "success")); }
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 })); }
public ActionResult Delete(int itemId) { _menuDataRepository.DeleteItem(itemId, CurrentModuleId); return(RedirectToDefaultRoute()); }
public ActionResult Delete(int itemId) { _menuController.DeleteItem(itemId, CurrentModuleId); return(RedirectToDefaultRoute()); }