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();
 }
Exemple #3
0
 public PackagesContracts()
 {
     PackageModel                 = new Package();
     PackagesServices             = new PackagesServices();
     MedicinesContracts           = new MedicinesContracts();
     PackagesTransactionContracts = new PackageTransactionsContracts();
     UserContracts                = new UserContracts();
 }
Exemple #4
0
 public PackagesContracts()
 {
     PackageModel = new Package();
     PackagesServices = new PackagesServices();
     MedicinesContracts = new MedicinesContracts();
     PackagesTransactionContracts = new PackageTransactionsContracts();
     UserContracts = new UserContracts();
 }
Exemple #5
0
 public StockController()
 {
     packagesContracts = new PackagesContracts();
     medicineContracts = new MedicinesContracts();
     userContracts = new UserContracts();
     dcContracts= new DistributionCentersContracts();
     packageTransactionsContracts = new PackageTransactionsContracts();
     distributionsContracts = new DistributionsContracts();
 }
Exemple #6
0
        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());
        }
Exemple #7
0
 public AccountController()
     : this(new UserManager<ApplicationUser>(new UserStore<ApplicationUser>(new ApplicationDbContext())))
 {
     userContracts = new UserContracts();
     dcContracts = new DistributionCentersContracts();
 }
Exemple #8
0
 public UsersController()
 {
     userContracts = new UserContracts();
     dcContracts = new DistributionCentersContracts();
 }
Exemple #9
0
        public ReportsController()
        {
            PackagesContracts = new PackagesContracts();

            UserContracts = new UserContracts();
        }