public IHttpActionResult Delete(int id) { logger.Write($"[DELETE] (Paintings) /{id}", LogLevel.INFO); Painting painting = db.Get(id); if (painting == null) { return(NotFound()); } db.Delete(id); return(StatusCode(HttpStatusCode.NoContent)); }
public void Delete(long id) { repository.Delete(id); }