public void Delete(int id) { Articulo item = repository.Get(id); if (item == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } repository.Remove(id); }
public HttpResponseMessage DeleteArticulo(int id) { repository.Remove(id); return(new HttpResponseMessage(HttpStatusCode.NoContent)); }