public void DeleteProductInboundDetailRs(int Id) { ProductInboundDetail deleteProductInboundDetailRs = GetProductInboundDetailById(Id); deleteProductInboundDetailRs.IsDeleted = true; UpdateProductInboundDetail(deleteProductInboundDetailRs); }
public void DeleteProductInboundDetail(int Id) { ProductInboundDetail deletedProductInboundDetail = GetProductInboundDetailById(Id); Context.ProductInboundDetail.Remove(deletedProductInboundDetail); Context.Entry(deletedProductInboundDetail).State = EntityState.Deleted; Context.SaveChanges(); }
public void UpdateProductInboundDetail(ProductInboundDetail ProductInboundDetail) { Context.Entry(ProductInboundDetail).State = EntityState.Modified; Context.SaveChanges(); }
public void InsertProductInboundDetail(ProductInboundDetail ProductInboundDetail) { Context.ProductInboundDetail.Add(ProductInboundDetail); Context.Entry(ProductInboundDetail).State = EntityState.Added; Context.SaveChanges(); }