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 StockController() { packagesContracts = new PackagesContracts(); medicineContracts = new MedicinesContracts(); userContracts = new UserContracts(); dcContracts= new DistributionCentersContracts(); packageTransactionsContracts = new PackageTransactionsContracts(); distributionsContracts = new DistributionsContracts(); }
public static string GenerateBarCodeId() { string chars = "0123456789"; var random = new Random(); var package = new Package(); string result; PackagesContracts packageContracts = new PackagesContracts(); do { result = new string( Enumerable.Repeat(chars, 10) .Select(s => s[random.Next(s.Length)]) .ToArray()); } while (packageContracts.GetAll().Where(x => x.BarcodeId == Convert.ToString(result)) == null); return result; }
public static string GenerateBarCodeId() { string chars = "0123456789"; var random = new Random(); var package = new Package(); string result; PackagesContracts packageContracts = new PackagesContracts(); do { result = new string( Enumerable.Repeat(chars, 10) .Select(s => s[random.Next(s.Length)]) .ToArray()); } while (packageContracts.GetAll().Where(x => x.BarcodeId == Convert.ToString(result)) == null); return(result); }
public ReportsController() { PackagesContracts = new PackagesContracts(); UserContracts = new UserContracts(); }