public DistributionsContracts() { DistributionModel = new Distribution(); DistributionsServices = new DistributionsServices(); PackagesContracts= new PackagesContracts(); UserContracts = new UserContracts(); }
public DistributionsContracts() { DistributionModel = new Distribution(); DistributionsServices = new DistributionsServices(); PackagesContracts = new PackagesContracts(); UserContracts = new UserContracts(); }
public PackagesContracts() { PackageModel = new Package(); PackagesServices = new PackagesServices(); MedicinesContracts = new MedicinesContracts(); PackagesTransactionContracts = new PackageTransactionsContracts(); UserContracts = new UserContracts(); }
public StockController() { packagesContracts = new PackagesContracts(); medicineContracts = new MedicinesContracts(); userContracts = new UserContracts(); dcContracts= new DistributionCentersContracts(); packageTransactionsContracts = new PackageTransactionsContracts(); distributionsContracts = new DistributionsContracts(); }
public ICollection <Package> GetAllPackagesAtDC(string user) { var userDetails = UserContracts.GetcurrentUserDetails(user); return(GetAll().Where(x => x.CurrentLocation.DistributionCenterId == userDetails.DistributionCenter.DistributionCenterId && x.PackageStatus.PackageStatusId == 1).ToList()); }
public AccountController() : this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext()))) { userContracts = new UserContracts(); dcContracts = new DistributionCentersContracts(); }
public UsersController() { userContracts = new UserContracts(); dcContracts = new DistributionCentersContracts(); }
public ReportsController() { PackagesContracts = new PackagesContracts(); UserContracts = new UserContracts(); }