public void SaveSalesDtl(InvenSalesDtlDto DTO)
 {
     using (var container = new InventoryContainer())
     {
         InvenSaleDtl gur = new InvenSaleDtl();
         container.InvenSaleDtls.AddObject((InvenSaleDtl)DTOMapper.DTOObjectConverter(DTO, gur));
         container.SaveChanges();
     }
 }
        public void Edit_ChangeProductPage(InvenSalesDtlDto DTO)
        {
            using (var container = new InventoryContainer())
            {
                var Comp = new InvenSaleDtl();
                Comp = container.InvenSaleDtls.FirstOrDefault(o => o.SaleDtlId.Equals(DTO.SaleDtlId));

                Comp.TransectionType = DTO.TransectionType;
                Comp = (InvenSaleDtl)DTOMapper.DTOObjectConverter(DTO, Comp);
                container.SaveChanges();
            }
        }