Example #1
0
        public ApiBatch Get(int ID)
        {
            IBatchManager batchManager = UnityResolver.Resolve <IBatchManager>();
            Batch         batchModel   = batchManager.FindBatchByID(ID);

            string   id    = User.Identity.Name;
            ApiBatch batch = new ApiBatch
            {
                ID         = batchModel.ID,
                Date       = batchModel.Date,
                Qty        = batchModel.Qty,
                UnitPrice  = batchModel.UnitPrice,
                ItemID     = batchModel.ItemID,
                SupplierID = batchModel.SupplierID
            };

            return(batch);
        }