/// <summary>
        /// Update Vendor.
        /// </summary>
        /// <param name="model">The Vendor information value.</param>
        /// <returns></returns>
        public ResultViewModel MarkWeightingKey(VendorTransectionRequestViewModel model)
        {
            var result = new ResultViewModel();

            using (TransactionScope scope = new TransactionScope())
            {
                var data = _unitOfWork.GetRepository <VendorTransaction>().GetById(model.Id);
                data.MarkWeightingKey = model.WeightingKey;
                _unitOfWork.GetRepository <VendorTransaction>().Update(data);
                _unitOfWork.Complete(scope);
            }
            //this.ReImportTransactionById(model.Id);
            return(result);
        }
Example #2
0
 public IActionResult MarkWeightingKey([FromBody] VendorTransectionRequestViewModel model)
 {
     return(Ok(_vendorTransection.MarkWeightingKey(model)));
 }