public IHttpActionResult Delete(string id) { Report report = _reportsRepository.Get(id); if (report == null) { return(NotFound()); } _reportsRepository.Delete(id); return(StatusCode(HttpStatusCode.NoContent)); }
public int Delete(int reportId) { return(_repo.Delete(reportId)); }