public void Delete(int id) { try { Categories.Delete(id); } catch (InvalidOperationException) { throw new HttpResponseException(HttpStatusCode.NotFound); } }
public JsonResult DeleteCategory(Categories category) { try { iCategories.Delete(category); return(True()); } catch (Exception e) { return(Error(e, false)); } }
public void Delete(Guid id) { Log.Instance.Info("Удаление категории заметок c ID {0}", id); _categoriesRepository.Delete(id); }
public ActionResult DeleteConfirmed(int id) { repository.Delete(id); return(RedirectToAction("Index")); }
public IHttpActionResult DeleteCategories(string id) { _repository.Delete(id); return(Ok()); }