예제 #1
0
        public async Task <IActionResult> ChangeOwnersPassword([FromBody] PasswordChange passwordChange, string login)
        {
            if (!ModelState.IsValid)
            {
                return(StatusCode(420, ModelState));
            }

            await _ownerService.ChangePassword(passwordChange, login);

            return(Ok());
        }