public void SaveSalesPaymentDtl(InvenSalePaymentDtlDto DTO) { using (var container = new InventoryContainer()) { InvenSalesPaymentDtl ino = new InvenSalesPaymentDtl(); container.InvenSalesPaymentDtls.AddObject((InvenSalesPaymentDtl)DTOMapper.DTOObjectConverter(DTO, ino)); container.SaveChanges(); } }
public void Edit_AdjustpaymentDtl(InvenSalePaymentDtlDto DTO) { using (var container = new InventoryContainer()) { var Comp = new InvenSalesPaymentDtl(); Comp = container.InvenSalesPaymentDtls.FirstOrDefault(o => o.SalePayDtlId.Equals(DTO.SaleDtlId)); Comp.SalePayDtlId = DTO.SalePayDtlId; Comp.PaidAmount = DTO.TotalPrice; // Comp.TransectionType = DTO.TransectionType; Comp = (InvenSalesPaymentDtl)DTOMapper.DTOObjectConverter(DTO, Comp); container.SaveChanges(); } }
public void SaveSalesPaymentDtl(InvenSalePaymentDtlDto DTO) { Dal.SaveSalesPaymentDtl(DTO); }
public void Edit_AdjustpaymentDtl(InvenSalePaymentDtlDto DTO) { Dal.Edit_AdjustpaymentDtl(DTO); }