﻿using System.Threading.Tasks;
using LocalLingua.Data.DomainModels;
using LocalLingua.Web.Infrastructure.Models;

namespace LocalLingua.Web.Infrastructure.Account
{
    public interface IAccountService
    {
        Task Register(UserContainer newUser);
        Task<string> LogIn(UserContainer newUser);
        Task LogOut();
        Task<User> GetUser(string username, string password);
        Task<bool> ChangePassword(UserContainer userWithChangedPassword);
    }
}
