Пример #1
0
        public PrqBillPaymentReference SetToBussinessObject(Prq_BillPaymentReference Entity)
        {
            PrqBillPaymentReference model = new PrqBillPaymentReference();

            model.PaymentID      = Entity.PaymentID;
            model.SupplierBillID = Entity.SupplierBillID;
            model.SupplierBillNo = Entity.SupplierBillRef;

            return(model);
        }
Пример #2
0
        public Prq_BillPaymentReference SetToModelObject(PrqBillPaymentReference model)
        {
            Prq_BillPaymentReference Entity = new Prq_BillPaymentReference();

            Entity.PaymentID       = model.PaymentID;// Convert.ToInt16(_context.Prq_BillPayment.DefaultIfEmpty().Max(m => m.PaymentID == null ? 0 : m.PaymentID));
            Entity.SupplierBillID  = model.SupplierBillID;
            Entity.SupplierBillRef = model.SupplierBillNo;
            Entity.RecordStatus    = model.RecordStatus;

            return(Entity);
        }