public async Task <IActionResult> AddChat([FromBody] AddChat.Request req) { var newRec = new OpsNotice(); newRec.Push(req.desc); await Common1DB.OpsNotices.AddAsync(newRec); await Common1DB.SaveChangesAsync(); return(Ok(new AddChat.Response { addedNotice = (ChatNotice)newRec, })); }
static string NoticeCoded(OpsNotice rec) { return($"{rec.Id}_{rec.version}"); }