Exemplo n.º 1
0
 // Получение фото для каждого товара
 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;
 }
Exemplo n.º 3
0
 public FractionsController(WarhammerContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public ShoppingCartsController(WarhammerContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public AccountController(WarhammerContext context)
 {
     _context = context;
 }
 public ChangePasswordController(WarhammerContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public CategoriesController(WarhammerContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public ProductImagesController(WarhammerContext context)
 {
     _context = context;
 }