Esempio n. 1
0
        public async Task <IActionResult> UpdateMessageStatus([FromBody] UpdateMessagesModel model)
        {
            var result = new OperationResult();

            try
            {
                await _chatMessageService.PublishStatusUpdateAsync(model.Ids, model.Status);

                return(new ObjectResult(result.Success()));
            }
            catch
            {
                return(new ObjectResult(result.Fail()));
            }
        }