public async Task AddEstablishment(Models.Reports model)
 {
     _dbContext.Reports.Add(model);
     await _dbContext.SaveChangesAsync().ConfigureAwait(false);
 }
 public void Delete(Models.Reports model)
 {
     _dbContext.Reports.Remove(model);
 }
Пример #3
0
 public ActionResult Post([FromBody] Models.Reports report)
 {
     _db.Reports.Add(report);
     _db.SaveChanges();
     return(Ok(report));
 }