Example #1
0
 public LikesController(
     ILikeManager likeManager,
     IUserService userService)
 {
     this.likeManager = likeManager;
     this.userService = userService;
 }
Example #2
0
 public LGUnitOfWork(string connectionString)
 {
     db              = new LifeGalleryContext(connectionString);
     UserManager     = new ApplicationUserManager(new UserStore <ApplicationUser>(db));
     RoleManager     = new ApplicationRoleManager(new RoleStore <ApplicationRole>(db));
     ProfileManager  = new ProfileManager(db);
     PhotoManager    = new PhotoManager(db);
     CommentManager  = new CommentManager(db);
     CategoryManager = new CategoryManager(db);
     LikeManager     = new LikeManager(db);
 }