Esempio n. 1
0
        public async Task HandleAsync(UserRegisterCommand command)
        {
            await _apiHttpWebService.SendAsync <object>(HttpMethod.Post, Routes.Users.Main, command);

            await HandleAsync(_mapper.MapTo <UserLoginCommand>(command));
        }
Esempio n. 2
0
 public Task <PaginationDto <MessageDto> > HandleAsync(GetMessagesQuery query)
 {
     return(_apiHttpWebService.SendAsync <PaginationDto <MessageDto> >(HttpMethod.Get, Routes.Messages.Main + query.Reciever));
 }
Esempio n. 3
0
 public Task <PaginationDto <UserDto> > HandleAsync(GetUsersQuery query)
 {
     return(_apiHttpWebService.SendAsync <PaginationDto <UserDto> >(HttpMethod.Get, Routes.Users.Main));
 }