よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
よく使われるメソッド
public async Task <IActionResult> AddMessage([FromBody] PostMessage model) { await dbMessages.InsertMessage(new Message { FromId = new ObjectId(model.FromId), ConversationId = new ObjectId(model.ConversationId), DateSent = DateTime.UtcNow, Content = model.Content }); return(NoContent()); }