public async Task <IActionResult> PutFeed(int id, Feed feed) { if (id != feed.Id) { return(BadRequest()); } _context.Entry(feed).State = EntityState.Modified; try { await _context.SaveChangesAsync(); } catch (DbUpdateConcurrencyException) { if (!FeedExists(id)) { return(NotFound()); } else { throw; } } return(NoContent()); }
public async Task <StatusCodeResult> PostCspReport([FromBody] CspReportWrapper cspReportWrapper) { _context.CspReport.Add(cspReportWrapper.Report); await _context.SaveChangesAsync(); return(StatusCode(204)); }