Exemplo n.º 1
0
 public async Task <IActionResult> RenderMessage([FromRoute] Guid?msgId, [FromBody] UserMessageDTO msg)
 {
     if (msgId != null && msgId != Guid.Empty)
     {
         msg = await _UserMessageService.GetAsync(msgId.Value);
     }
     return(PartialView("~/Pages/Discussions/Partials/MessageRender.cshtml", msg));
 }
Exemplo n.º 2
0
 public async Task <IActionResult> Get()
 {
     return(Ok(await _userMessageService.GetAsync()));
 }