예제 #1
0
 public CommentService(
     SocialMediaDbContext data,
     ITaggedUserService taggedUserService)
 {
     this._data = data;
     this._taggedUserService = taggedUserService;
 }
 public CommentsController(SocialMediaDbContext context,
                           SignInManager <User> signInManager,
                           UserManager <User> userManager)
 {
     _context       = context;
     _signInManager = signInManager;
     _userManager   = userManager;
 }
예제 #3
0
 public EmailModel(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     SocialMediaDbContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     this._context  = context;
 }
        public FriendsController(IHttpContextAccessor httpContextAccessor)
        {
            _httpContextAccessor = httpContextAccessor;

            _dbcontext = new SocialMediaDbContext();

            var cookievalue = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];

            UserId = Int32.Parse(cookievalue);
        }
        public HomeController(IHostingEnvironment environment, IHttpContextAccessor httpContextAccessor)
        {
            _httpContextAccessor = httpContextAccessor;

            _environment = environment;
            _dbcontext   = new SocialMediaDbContext();

            var cookievalue = _httpContextAccessor.HttpContext.Request.Cookies["UserId"];

            UserId = Int32.Parse(cookievalue);
        }
예제 #6
0
 public ChangePasswordModel(
     UserManager <User> userManager,
     SignInManager <User> signInManager,
     ILogger <ChangePasswordModel> logger,
     SocialMediaDbContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _logger        = logger;
     this._context  = context;
 }
예제 #7
0
 //Inject database instance as dependency
 public ProfileController(SocialMediaDbContext db)
 {
     _db = db;
 }
예제 #8
0
 public AdminService(SocialMediaDbContext db, UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
 {
     this.db          = db;
     this.roleManager = roleManager;
     _userManager     = userManager;
 }
 public EfGenericRepository(SocialMediaDbContext ctx)
 {
     context = ctx;
 }
예제 #10
0
 public FriendshipService(SocialMediaDbContext data) => this._data = data;
예제 #11
0
 public ManageService(SocialMediaDbContext db)
 {
     this.db = db;
 }
 //Inject database instance as dependency
 public AccountController(SocialMediaDbContext db)
 {
     _db = db;
 }
예제 #13
0
 public MessageService(IUnitOfWork uow, UserManager <AppUser> userManager, SocialMediaDbContext context)
 {
     this.uow         = uow;
     this.userManager = userManager;
     this.context     = context;
 }
예제 #14
0
 public EfFriendsRepository(SocialMediaDbContext context)
     : base(context)
 {
 }
 public EfMessageRepository(SocialMediaDbContext context)
     : base(context)
 {
 }
 public UserListService(SocialMediaDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #17
0
 public EfUnitOfWork(SocialMediaDbContext _context)
 {
     context = _context ?? throw new ArgumentNullException("DbContext can not be null");
 }
예제 #18
0
 public UsersModel(SocialMediaDbContext db, ISearchService search)
 {
     _db     = db;
     _search = search;
 }
 public EfCommentRepository(SocialMediaDbContext context)
     : base(context)
 {
 }
예제 #20
0
 public TaggedUserService(SocialMediaDbContext data) => this._data = data;
예제 #21
0
 public ImageService(SocialMediaDbContext context) => this._data = context;
예제 #22
0
 public GroupService(
     SocialMediaDbContext data)
 {
     this._data = data;
 }
예제 #23
0
 public PictureService(SocialMediaDbContext db)
 {
     this.db = db;
 }
예제 #24
0
 public SearchService(SocialMediaDbContext db)
 {
     this.db = db;
 }
예제 #25
0
 public UserService(SocialMediaDbContext db)
 {
     this.db = db;
 }
예제 #26
0
 public EfPostRepository(SocialMediaDbContext context)
     : base(context)
 {
 }
예제 #27
0
 public ImageFetchingService(SocialMediaDbContext data) => this._data = data;
예제 #28
0
 public CardService(SocialMediaDbContext dbContext)
 {
     _dbContext = dbContext;
 }
예제 #29
0
 public CommentService(SocialMediaDbContext db)
 {
     this.db = db;
 }
예제 #30
0
 public AlbumService(SocialMediaDbContext db)
 {
     this.db = db;
 }