Exemplo n.º 1
0
        public async Task <HttpResponseMessage> Delete([FromBody] ChatRequest.MessageDeleteRequest request)
        {
            if (!Validation.IsEnumerablePopulated(request.MessageList, x => request.MessageList, ActionContext, ModelState))
            {
                return(ActionContext.Response);
            }

            var response = await _service.MessageDelete(request, Request.GetSession()).ConfigureAwait(false);

            return(Request.SystemResponse(SystemDbStatus.Deleted, response));
        }
Exemplo n.º 2
0
 public Task <List <string> > MessageDelete(ChatRequest.MessageDeleteRequest request, SystemSession session)
 {
     return(_jUnitOfWork.Chat.MessageDelete(request, session));
 }
Exemplo n.º 3
0
 public async Task <List <string> > MessageDelete(ChatRequest.MessageDeleteRequest request, SystemSession session)
 {
     return(await Task.Factory.StartNew(() => Client.ChatUserInfoService.msgDelete(request.InstanceId, request.MessageList, session.GetSession())).ConfigureAwait(false));
 }