示例#1
0
 public MainController(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager, TTransformer transformer, TRepository repository)
 {
     this.context     = context;
     this.viewsInfo   = viewsInfo;
     this.resManager  = resManager;
     this.transformer = transformer;
     this.repository  = repository;
 }
 public OrganizationRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager, HttpContext httpContext = null)
     : base(context, viewsInfo, resManager, new OrganizationValidatior(context, resManager), new OrganizationTransformer(context, resManager, httpContext))
 {
     if (httpContext != null)
     {
         currentUser = httpContext.GetCurrentUser(context);
     }
 }
示例#3
0
 public EmployeeRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager, HttpContext httpContext = null, UserManager <User> userManager = null)
     : base(context, viewsInfo, resManager, new EmployeeValidator(userManager, context, resManager), new EmployeeTransformer(context, resManager, httpContext))
 {
     this.userManager = userManager;
     if (httpContext != null)
     {
         currentUser = httpContext.GetCurrentUser(context);
     }
 }
 public AccountManagerRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager, HttpContext httpContext = null)
     : base(context, viewsInfo, resManager, new AccountManagerValidatior(context, resManager), new AccountManagerTransformer(context, resManager))
 {
     accountRepository = new AccountRepository(context, resManager);
     if (httpContext != null)
     {
         currentUser = httpContext.GetCurrentUser(context);
     }
 }
示例#5
0
 public GenericRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager, TValidator validator, TTransformer transformer)
 {
     this.context     = context;
     dbSet            = context.Set <TDataModel>();
     this.viewsInfo   = viewsInfo;
     this.resManager  = resManager;
     this.validator   = validator;
     this.transformer = transformer;
 }
 public EmployeePositionRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager, HttpContext httpContext = null)
     : base(context, viewsInfo, resManager, new EmployeePositionValidator(context, resManager), new EmployeePositionTransformer(context, resManager))
 {
     syncErrors        = new Dictionary <string, string>();
     positionsToAdd    = new List <EmployeePosition>();
     positionsToRemove = new List <EmployeePosition>();
     if (httpContext != null)
     {
         currentUser = httpContext.GetCurrentUser(context);
     }
 }
示例#7
0
 public AccountController(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new AccountTransformer(context, resManager), new AccountRepository(context, viewsInfo, resManager))
 {
 }
示例#8
0
 public EmployeeContactRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new EmployeeContactValidator(context, resManager), new EmployeeContactTransformer(context, resManager))
 {
 }
示例#9
0
 public AccountQuoteRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new AccountQuoteValidator(context, resManager), new AccountQuoteTransformer(context, resManager))
 {
 }
示例#10
0
 public DivisionRepository(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new DivisionValidatior(context, resManager), new DivisionTransformer(context, resManager))
 {
 }
示例#11
0
 public PositionSubPositionController(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new PositionTransformer(context, resManager), new PositionRepository(context, viewsInfo, resManager))
 {
 }
示例#12
0
 public TestController(IViewsInfo viewsInfo)
 {
     this.viewsInfo = viewsInfo;
 }
示例#13
0
 public EmployeeController(UserManager <User> userManager, ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new EmployeeTransformer(context, resManager), new EmployeeRepository(context, viewsInfo, resManager, null, userManager))
 {
     this.userManager = userManager;
 }
 public EmployeeSubordinateController(ApplicationDbContext context, IViewsInfo viewsInfo, ResManager resManager)
     : base(context, viewsInfo, resManager, new EmployeeTransformer(context, resManager), new EmployeeRepository(context, viewsInfo, resManager))
 {
 }