public LikesController( ILikeManager likeManager, IUserService userService) { this.likeManager = likeManager; this.userService = userService; }
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); }