Example #1
0
 public OrderService(IOrderRepository orderRepo, IBouquetOrderRepository bouquetOrderRepo, IFlowerOrderRepository flowerOrderRepo, IFlowerRepository flowerRepo, IBouquetRepository bouquetRepo, IConfiguration configuration)
 {
     _orderRepo        = orderRepo;
     _bouquetOrderRepo = bouquetOrderRepo;
     _flowerOrderRepo  = flowerOrderRepo;
     _flowerRepo       = flowerRepo;
     _bouquetRepo      = bouquetRepo;
     _configuration    = configuration;
 }
Example #2
0
 //constructor
 public AdminController(UserManager <ApplicationUser> userManager,
                        RoleManager <IdentityRole> roleManager,
                        IFlowerRepository flowerRepository,
                        ICategoryRepository categoryRepository)
 {
     _userManager        = userManager;
     _roleManager        = roleManager;
     _flowerRepository   = flowerRepository;
     _categoryRepository = categoryRepository;
 }
Example #3
0
 public AddFlowerViewModel()
 {
     flowerTypeRepository = new FlowerTypeRepository();
     flowerRepository     = new FlowerRepository();
     flowerTypes          = flowerTypeRepository.Gets();
     flowers    = flowerRepository.Gets();
     flowerType = new FlowerType();
     flower     = new Flower();
     AddFlower  = new Command(Insert);
 }
 private void GetFlowers()
 {
     if (FlowerTypeSelected == null || FlowerTypeSelected.Id == 0)
     {
         return;
     }
     flowers          = new ObservableCollection <Flower>();
     flowerRepository = new FlowerRepository();
     Flowers          = flowerRepository.GetsByTypeId(FlowerTypeSelected.Id);
 }
 public FlowerTypeAndFlowerMasterDetailViewModel()
 {
     flowerTypeRepository = new FlowerTypeRepository();
     flowerRepository     = new FlowerRepository();
     FlowerTypes          = new ObservableCollection <FlowerType>();
     FlowerTypes          = flowerTypeRepository.Gets();
     if (FlowerTypes.Count > 0)
     {
         FlowerTypeSelected = FlowerTypes[0];
     }
 }
Example #6
0
 public DataManager(IFlowerRepository repositoryFlower, IPlantationRepository repositoryPlantation,
                    IWarehouseRepository repositoryWarehouse, ISupplyRepository repositorySupply,
                    IPlantationFlowerRepository repositoryPlantationFlower, ISupplyFlowerRepository repositorySupplyFlower,
                    IWarehouseFlowerRepository repositoryWarehouseFlower)
 {
     TheFlowers        = repositoryFlower;
     Plantations       = repositoryPlantation;
     Supplies          = repositorySupply;
     Warehouses        = repositoryWarehouse;
     PlantationFlowers = repositoryPlantationFlower;
     WarehouseFlowers  = repositoryWarehouseFlower;
     SupplyFlowers     = repositorySupplyFlower;
 }
Example #7
0
        void LoadData()
        {
            flowerTypeRepository  = new FlowerTypeRepository();
            flowerRepository      = new FlowerRepository();
            flowerTypeWithFlowers = new ObservableCollection <FlowerTypeWithFlower>();
            ObservableCollection <FlowerType> list = flowerTypeRepository.Gets();

            foreach (FlowerType item in list)
            {
                FlowerTypeWithFlower temp = new FlowerTypeWithFlower();
                temp.FlowerType = item;

                temp.Flowers = flowerRepository.GetsByTypeId(item.Id);
                flowerTypeWithFlowers.Add(temp);
            }
        }
Example #8
0
 //constructor
 public HomeController(IFlowerRepository flowerRepository)
 {
     _flowerRepository = flowerRepository;
 }
Example #9
0
 //constructor
 public FlowerController(IFlowerRepository flowerRepository, ICategoryRepository categoryRepository)
 {
     _flowerRepository   = flowerRepository;
     _categoryRepository = categoryRepository;
 }
Example #10
0
 public FlowerController(IFlowerRepository flowerRepository)
 {
     this.flowerRepository = flowerRepository;
 }
 //constructor
 public ShoppingCartController(IFlowerRepository flowerRepository, ShoppingCart shoppingCart)
 {
     _flowerRepository = flowerRepository;
     _shoppingCart     = shoppingCart;
 }
Example #12
0
 public PlantationController(IPlantationRepository plantationRepository, IFlowerRepository flowerRepository)
 {
     this.plantationRepository = plantationRepository;
     this.flowerRepository     = flowerRepository;
 }
Example #13
0
 public FlowersCatalogService(IFlowerRepository flowersRepo)
 {
     _flowersRepo = flowersRepo;
 }
Example #14
0
 public FlowerService(IUnitOfWork unitOfWork, IFlowerRepository flowerRepository)
     : base(unitOfWork, flowerRepository)
 {
     _unitOfWork       = unitOfWork;
     _flowerRepository = flowerRepository;
 }
 public FavoriteFlowerController(IFlowerRepository flowerRepository, ShoppingCart shoppingCart)
 {
     _flowerRepository = flowerRepository;
 }
Example #16
0
 public HomeController(IFlowerRepository flowerRepository,
                       IWebHostEnvironment webHostEnvironment)
 {
     this.flowerRepository   = flowerRepository;
     this.webHostEnvironment = webHostEnvironment;
 }
 //constructor
 public FlowerDataController(IFlowerRepository flowerRepository)
 {
     _flowerRepository = flowerRepository;
 }