예제 #1
0
 public SalesController(Irepository <Product> productRepo, Irepository <Customer> customerRepo, Irepository <SalesInvoice> salesRepo, Irepository <SalesDetails> detailrepo)
 {
     this.productRepo = productRepo;
     CustomerRepo     = customerRepo;
     this.salesRepo   = salesRepo;
     this.detailrepo  = detailrepo;
 }
예제 #2
0
        static void Main(string[] args)
        {
            productFactory obj  = new productFactory();
            Repository     obj1 = new Repository();

            Console.WriteLine("Enter Product which you want to book or save:");
            string   productName = Console.ReadLine();
            Iproduct prod        = obj.GetProduct(productName);

            string product = prod.GetTypeOfProduct();

            Console.WriteLine("Enter the storage type ");
            string      storageType = Console.ReadLine();
            Irepository storage     = obj1.GetStorageType(storageType);

            Console.WriteLine("Enter your choice\n1.save " + product + "\n2.Book " + product);
            int ch = Convert.ToInt32(Console.ReadLine());

            switch (ch)
            {
            case 1:
                prod.Save();
                break;

            case 2:
                prod.Book(prod, storage);
                break;
            }
        }
예제 #3
0
 public products_services(Irepository <products> productRepo)
 {
     _productRepo = productRepo;
 }
예제 #4
0
 public SightingController(Irepository repo) => repository = repo;
예제 #5
0
 public void Book(Iproduct product, Irepository storageType)
 {
     Console.WriteLine("Wrong Credential");
 }
예제 #6
0
 public void Book(Iproduct product, Irepository storageType)
 {
     product.IsBooked = true;
     storageType.AddProductDetailsToFile(product);
 }
예제 #7
0
 public ProductManagerController(Irepository <Product> productContext, IRepository <Productcategory> productcategorycontext)
 {
     Context           = productContext;
     productcategories = productcategorycontext;
 }
예제 #8
0
 public CacheAdding(Irepository repo)
 {
     _repo = repo;
 }
 public ProductsController(ApplicationDbContext context, Irepository <Product> productrepo)
 {
     _context         = context;
     this.productrepo = productrepo;
 }
예제 #10
0
 public void Book(Iproduct product, Irepository storageType)
 {
     Console.WriteLine("Flight Booked");
 }
예제 #11
0
 public CategoriaDominio(Irepository <Categoria> Irepository)
 {
     _Irepository = Irepository;
 }
예제 #12
0
 public void Book(Iproduct product, Irepository storageType)
 {
     Console.WriteLine("Booked Hotel");
 }
 public CustomersController(ApplicationDbContext context, Irepository <Customer> customerrepo)
 {
     _context          = context;
     this.customerrepo = customerrepo;
 }
 public ArticuloDominio(Irepository <Articulo> Irepository, IArticuloRepositorio IArticulo)
 {
     _Irepository = Irepository;
     _IArticulo   = IArticulo;
 }
예제 #15
0
 public HomeController(Irepository repo) => repository = repo;
예제 #16
0
 public VehicleModelService(Irepository <VehicleModelEntity> d)
 {
     database = d;
 }
예제 #17
0
 public CategoriesController(Irepository <Category> category)
 {
     _category = category;
 }
예제 #18
0
 public WithCaching(Irepository repo) : base(repo)
 {
 }
예제 #19
0
 public PlayerController(ILogger <PlayerController> logger, Irepository repository)
 {
     _logger     = logger;
     _repository = repository;
 }
예제 #20
0
 public AquariumController(Irepository repository)
 {
     Repository = repository ?? throw new ArgumentNullException();
 }
예제 #21
0
 public VehicleMakeService(Irepository <VehicleMakeEntity> d)
 {
     database = d;
 }