public string SaveSocRemarks(ProductOrderVm socremrk)
        {
            var    data  = _mapper.Map <ProductOrder>(socremrk);
            var    data1 = _mapper.Map <PaymentOrder>(socremrk);
            string res   = "";

            try
            {
                if (data.OrderId != 0)
                {
                    /* var proData = _unitOfWork.Order.Single(c => c.OrderId == socremrk.OrderId);
                     * proData.Soc = data.Soc;
                     * proData.Remarks = data.Remarks;
                     * proData.StateId = BinderUtility.Common.OrderState.PAYMENT_CONFIRM;
                     * proData.SocConfirmationDate = DateTime.Now;*/

                    var payConfirmMsg = GetPaymentConfirmationData(data);
                    _notification.SendPaymentConfirmationNotificationToDealer(payConfirmMsg);


                    _unitOfWork.Order.Update(data);
                    _unitOfWork.Commit();
                    res = "Success";
                }
            }
            catch (Exception ex)
            {
                res = ex.Message;
            }

            return(res);
        }
Пример #2
0
 public IActionResult SaveSocRemarks(ProductOrderVm socremrk)
 {
     return(Ok(_orderPaymentHistoryServices.SaveSocRemarks(socremrk)));
 }