﻿using System;
using CourseManagement.Models;
using Microsoft.AspNet.Identity.EntityFramework;

namespace CourseManagement.Data
{
    public interface IUnitOfWork : IDisposable
    {
        IRepository<Course> Courses { get;}
        
        IRepository<Participant> Participants { get;}

        IRepository<AppUser> Users { get; }

        IRepository<IdentityRole> Roles { get; }

        int SaveChanges();
    }
}
