public ServicesController(MusicalShopIdentityDbContext ctx, IMapper mapper, UserManager <User> userManager, RoleManager <IdentityRole> roleManager) { this.ctx = ctx; _mapper = mapper; _userManager = userManager; _roleManager = roleManager; }
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; }
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 }); } }
public GoodsManagementController(MusicalShopIdentityDbContext ctx, IFileSavingService fileSavingService) { this.ctx = ctx; this.fileSavingService = fileSavingService; }
public static Service GetService(this User user, MusicalShopIdentityDbContext ctx) { return(ctx.ServiceUsers.Single(cu => cu.UserId == user.Id).Service); }
public static Company GetCompany(this User user, MusicalShopIdentityDbContext ctx) { return(ctx.CompanyUsers.Single(cu => cu.UserId == user.Id).Company); }
public ReviewsController(MusicalShopIdentityDbContext ctx, IMapper mapper, UserManager <User> userManager) { this.ctx = ctx; _mapper = mapper; _userManager = userManager; }
public StarsController(MusicalShopIdentityDbContext ctx, UserManager <User> userManager) { this.ctx = ctx; _userManager = userManager; }
public InstrumentsController(MusicalShopIdentityDbContext ctx) { this.ctx = ctx; }
public LocationsController(MusicalShopIdentityDbContext ctx, IMapper mapper, IFileSavingService fileSavingService) { this.ctx = ctx; _mapper = mapper; this.fileSavingService = fileSavingService; }