public async Task <ActionResult> PutDialog(Guid id, Dialog dialog) { if (id != dialog.Id) { return(BadRequest()); } _context.Entry(dialog).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult> PutQuestionnaire(Guid id, Questionnaire questionnaire) { if (id != questionnaire.Id) { return(BadRequest()); } _context.Entry(questionnaire).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult> PutReport(long id, Report report) { if (id != report.Id) { return(BadRequest()); } _context.Entry(report).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }
public async Task <ActionResult> PutMessage(Guid id, Message message) { if (id != message.Id) { return(BadRequest()); } _context.Entry(message).State = EntityState.Modified; await _context.SaveChangesAsync(); return(NoContent()); }