//POST: api/users/1/Accounts/changepassword
        public async Task <IActionResult> ChangePassword([FromRoute] Guid userId, [FromBody] ChangePasswordDto changePassword)
        {
            var response = await businessLogic.ChangePassword(userId, changePassword);

            if (response.IsSuccessful)
            {
                return(Ok());
            }

            var responseAsIdentityResult = (GenericResponse <IdentityResult>)response;

            if (responseAsIdentityResult.Result == null && !string.IsNullOrEmpty(responseAsIdentityResult.ErrorMessage))
            {
                return(BadRequest(new { message = response.ErrorMessage }));
            }
            if (responseAsIdentityResult.Result == null)
            {
                return(NotFound());
            }

            return(BadRequest(responseAsIdentityResult.Result));
        }