public async Task <IActionResult> Add([FromBody] MessageShowDTO model) { model.CreateUserId = UserIdentity.UserId; bool res = await _messageService.InsertAsync(model); return(Ok(res)); }
public async Task <bool> InsertAsync([FromBody] MessageShowDTO model) { return(await _messageService.InsertAsync(model)); }