示例#1
0
        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());
        }
示例#2
0
        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());
        }
示例#3
0
        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());
        }
示例#4
0
        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());
        }