public GenericRepository(TimesheetDbContext context) { this.context = context; dbSet = context.Set <T>(); }
public UserInfoRepository(TimesheetDbContext context) { this.context = context; dbSet = context.Set <UserInfoViewModel>(); userManager = HttpContext.Current.GetOwinContext().GetUserManager <ApplicationUserManager>(); }