public async Task <IActionResult> Authenticate([FromBody] UserDto userDto)
        {
            try
            {
                var login = await ApplicationUserRepository.AuthenticateAsync(userDto);

                return(Ok(new LoginView {
                    IsSuccess = login.IsSuccess, User = login.ApplicationUser, Role = login.Role, Token = login.Token.Token
                }));
            }
            catch (Exception)
            {
                throw;
            }
        }