public void DeleteProductOutboundDetailRs(int Id)
        {
            ProductOutboundDetail deleteProductOutboundDetailRs = GetProductOutboundDetailById(Id);

            deleteProductOutboundDetailRs.IsDeleted = true;
            UpdateProductOutboundDetail(deleteProductOutboundDetailRs);
        }
        public void DeleteProductOutboundDetail(int Id)
        {
            ProductOutboundDetail deletedProductOutboundDetail = GetProductOutboundDetailById(Id);

            Context.ProductOutboundDetail.Remove(deletedProductOutboundDetail);
            Context.Entry(deletedProductOutboundDetail).State = EntityState.Deleted;
            Context.SaveChanges();
        }
 public void UpdateProductOutboundDetail(ProductOutboundDetail ProductOutboundDetail)
 {
     Context.Entry(ProductOutboundDetail).State = EntityState.Modified;
     Context.SaveChanges();
 }
 public void InsertProductOutboundDetail(ProductOutboundDetail ProductOutboundDetail)
 {
     Context.ProductOutboundDetail.Add(ProductOutboundDetail);
     Context.Entry(ProductOutboundDetail).State = EntityState.Added;
     Context.SaveChanges();
 }