Beispiel #1
0
        public async Task <IHttpActionResult> UpdateUserProfile(UpdateUserProfileViewModel model)
        {
            model.ProfilePicture = _imageHelper.SaveProfilePicture(model.AvatarBase64);

            var createUserQueue = UserServiceConstants.QueueUpdateUser;

            await _messageBroker.GetSendEndpoint(createUserQueue)
            .Send <IUpdateUserCommand>(
                model.ToUpdateUserCommand()
                );

            return(Ok());
        }