public CitizenController(IUnitOfWork unitOfWork, Code9Context Context) { _unitOfwork = unitOfWork; _Context = Context; _CitizenManager = new CitizenManager(unitOfWork, Context); _exceptionManager = new ExceptionManager(unitOfWork); }
public ShopController(IUnitOfWork unitOfWork, Code9Context Context) { _unitOfwork = unitOfWork; _Context = Context; _ShopManager = new ShopManager(unitOfWork, Context); _exceptionManager = new ExceptionManager(unitOfWork); }
public GenericRepository(Code9Context dbContext) { if (dbContext == null) { throw new ArgumentNullException("dbContext"); } Context = dbContext; }
public AdminController(IUnitOfWork unitOfWork, IOptions<AppSettingsViewModel> appSettings, Code9Context Context) { _unitOfwork = unitOfWork; _Context = Context; _AdminManager = new AdminManager(Context, appSettings, unitOfWork); _ShopManager = new ShopManager(unitOfWork, Context); _exceptionManager = new ExceptionManager(unitOfWork); }
public ShopManager(IUnitOfWork unitOfWork, Code9Context context) { _unitOfWork = unitOfWork; _context = context; }
/// <summary> /// Constructor for ErrorLogRepository /// </summary> /// <param name="context"></param> public ErrorLogRepository(Code9Context context) : base(context) { _context = context; }
/// <summary> /// Constructor for UnitOfWork /// </summary> /// <param name="context"></param> public UnitOfWork(Code9Context context) { _context = context; }
public CitizenManager(IUnitOfWork unitOfWork, Code9Context context) { _unitOfWork = unitOfWork; _context = context; }
public UserManager(Code9Context context, IOptions <AppSettingsViewModel> appSettings, IUnitOfWork unitOfWork) { _unitOfWork = unitOfWork; _context = context; _appSettings = appSettings.Value; }