示例#1
0
        public async Task <IActionResult> Add([FromBody] MessageShowDTO model)
        {
            model.CreateUserId = UserIdentity.UserId;
            bool res = await _messageService.InsertAsync(model);

            return(Ok(res));
        }
示例#2
0
 public async Task <bool> InsertAsync([FromBody] MessageShowDTO model)
 {
     return(await _messageService.InsertAsync(model));
 }