public SlidersController( GraduationDbContext context, ILoggingRepository logg, IHostingEnvironment env) :base(logg,context,env) { AllowedExtensions = new string[] { ".jpg", ".png", ".gif", ".PNG" }; UploadDestination = env.WebRootPath + "/images/cms/slides"; }
public BaseController( ILoggingRepository logging, GraduationDbContext context, IHostingEnvironment env ) { _logging = logging; _context = context; this.hostingEnv = env; _context = context; }
public CardsController( ILoggingRepository logging, GraduationDbContext context, IHostingEnvironment env, ICateRepository cateRepo) :base(logging,context,env) { _cateRepo = cateRepo; AllowedExtensions = new string[] { ".jpg", ".png", ".gif", ".PNG" }; UploadDestination = env.WebRootPath + "/images/cms/news"; }
public CardApiController( ICateRepository cateRepo, ICardRepository cardRepo, UserManager<ApplicationUser> userManager, ILoggingRepository logRepo, GraduationDbContext context, SignInManager<ApplicationUser> signInManager) : base(logRepo) { _userManager = userManager; _signInManager = signInManager; _context = context; includeProperties = Expressions.LoadCardNavigations(); _cardRepo = cardRepo; _cateRepo = cateRepo; itemsPerPage = 3; pageInit = 6; }
public AccountApiController( UserManager<ApplicationUser> userManager, SignInManager<ApplicationUser> signInManager, IEmailSender emailSender, ISmsSender smsSender, ILoggerFactory loggerFactory, ILoggingRepository _errorRepository, GraduationDbContext context, ILoggingRepository logging ):base(logging) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _smsSender = smsSender; _logger = loggerFactory.CreateLogger<AccountController>(); _loggingRepository = _errorRepository; _context = context; }
public ErrorsController(GraduationDbContext context) { _context = context; }
public BlogsController(GraduationDbContext context) { _context = context; }
public ContactsController(GraduationDbContext context) { _context = context; }