public async Task<HttpResponseMessage> PrintDispositionTags(int stationId, [FromBody]List<DispositionTag> dispositionTags)
 {
     DispositionLabelMaker lblMaker = new DispositionLabelMaker();
     return await lblMaker.PrintPartTags(stationId, dispositionTags);
 }
        public void InsertScrapTransactionBuffer(IEnumerable<DispositionTag> tags)
        {
            PartMasterDataContext dbPart = new PartMasterDataContext();
            DispositionLabelMaker labelMaker = new DispositionLabelMaker();

            foreach (var tag in tags)
            {
                string fromLocation = "WAREASSM";
                string toLocation = "";
                if (tag.Disposition.Transaction.Trim() == "TRANSFER")
                    toLocation = "HOLDASSM";

                string reason = labelMaker.GetTrans4mReasonCode(tag);

                dbPart.InsertTransactionBuffer(tag.Part.partno.Trim(), (short)tag.Disposition.Qty, tag.Disposition.Transaction.Trim(), reason.Trim(),
                    fromLocation, toLocation, "");

            }

        }
 public async Task<HttpResponseMessage> PrintBlankTag(int stationId, [FromBody]BlankTag blankTag)
 {
     DispositionLabelMaker lblMaker = new DispositionLabelMaker();
     return await lblMaker.PrintBlankTag(stationId, blankTag);
 }