using FailureTroubleshooting.Data.Entities;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace FailureTroubleshooting.Data.Repositories
{
    public interface IIdentityRepository
    {
        IQueryable<UserRole> GetAllRoles();

        IQueryable<User> GetAllUsers();

        Task<User> GetUserByIdAsync(int userId);

        Task SaveUserAsync(User user, IList<UserRole> newRoles);
    }
}