public Task<UserDto> AuthenticateUser(string userName, string password)
        {
            var userDataAccess = new UserDataAccess();
            var user = userDataAccess.AuthenticateUser(userName, password);

            return Task.FromResult(new UserDto
            {
                UserId = user.Result.Id,
                FullName = user.Result.FullName,
                UserName = user.Result.UserName
            });
        }
        public Task<UserDto> RegisterUser(string userName, string password, string fullName)
        {
            try
            {
                var userDataAccess = new UserDataAccess();
                var user = userDataAccess.RegisterUser(userName, password, fullName);

                return Task.FromResult(new UserDto
                {
                    UserId = user.Result.Id,
                    FullName = user.Result.FullName,
                    UserName = user.Result.UserName
                });
            }
            catch (Exception ex)
            {
                throw;
            }
        }