예제 #1
0
 public ServicesController(MusicalShopIdentityDbContext ctx, IMapper mapper, UserManager <User> userManager, RoleManager <IdentityRole> roleManager)
 {
     this.ctx     = ctx;
     _mapper      = mapper;
     _userManager = userManager;
     _roleManager = roleManager;
 }
예제 #2
0
 public ManagementController(MusicalShopIdentityDbContext ctx, IMapper mapper, UserManager <User> userManager, RoleManager <IdentityRole> roleManager, ServicesDecisionHendler decisionHendler, IFileSavingService ifileSavingService)
 {
     this.ctx          = ctx;
     _mapper           = mapper;
     _userManager      = userManager;
     _roleManager      = roleManager;
     _decisionHendler  = decisionHendler;
     fileSavingService = ifileSavingService;
 }
예제 #3
0
 public ServicesDecisionHendler(MusicalShopIdentityDbContext ctx)
 {
     _ctx = ctx;
     foreach (var enumcrit in Enum.GetValues(typeof(CriterionsEnum)))
     {
         Criterions.Add(new Criterion()
         {
             Name = enumcrit.ToString(), IsMax = (int)enumcrit > 0 ? true : false, Id = (int)enumcrit
         });
     }
 }
예제 #4
0
 public GoodsManagementController(MusicalShopIdentityDbContext ctx, IFileSavingService fileSavingService)
 {
     this.ctx = ctx;
     this.fileSavingService = fileSavingService;
 }
예제 #5
0
파일: Extentions.cs 프로젝트: Burion/Admin
 public static Service GetService(this User user, MusicalShopIdentityDbContext ctx)
 {
     return(ctx.ServiceUsers.Single(cu => cu.UserId == user.Id).Service);
 }
예제 #6
0
파일: Extentions.cs 프로젝트: Burion/Admin
 public static Company GetCompany(this User user, MusicalShopIdentityDbContext ctx)
 {
     return(ctx.CompanyUsers.Single(cu => cu.UserId == user.Id).Company);
 }
예제 #7
0
 public ReviewsController(MusicalShopIdentityDbContext ctx, IMapper mapper, UserManager <User> userManager)
 {
     this.ctx     = ctx;
     _mapper      = mapper;
     _userManager = userManager;
 }
예제 #8
0
 public StarsController(MusicalShopIdentityDbContext ctx, UserManager <User> userManager)
 {
     this.ctx     = ctx;
     _userManager = userManager;
 }
예제 #9
0
 public InstrumentsController(MusicalShopIdentityDbContext ctx)
 {
     this.ctx = ctx;
 }
예제 #10
0
 public LocationsController(MusicalShopIdentityDbContext ctx, IMapper mapper, IFileSavingService fileSavingService)
 {
     this.ctx = ctx;
     _mapper  = mapper;
     this.fileSavingService = fileSavingService;
 }