예제 #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));
 }