Пример #1
0
 public IActionResult ChangePassword(ChangePasswordDto changePasswordDto)
 {
     if (_service.ChangePassword(changePasswordDto.Email, changePasswordDto.OldPassword, changePasswordDto.NewPassword))
     {
         return(Ok());
     }
     else
     {
         return(StatusCode(401));
     }
 }