// Получение фото для каждого товара public Dictionary <int, string> GetImagesByIds() { using (var context = new WarhammerContext()) { return(context.ProductImage.ToDictionary(key => key.ProductId, value => value.ImageSource)); } }
public ProductAlliancesController(WarhammerContext context) { _context = context; }
public FractionsController(WarhammerContext context) { _context = context; }
public ShoppingCartsController(WarhammerContext context) { _context = context; }
public AccountController(WarhammerContext context) { _context = context; }
public ChangePasswordController(WarhammerContext context) { _context = context; }
public CategoriesController(WarhammerContext context) { _context = context; }
public ProductImagesController(WarhammerContext context) { _context = context; }