public void DeletePhysicalInventoryDetailRs(int Id) { PhysicalInventoryDetail deletePhysicalInventoryDetailRs = GetPhysicalInventoryDetailById(Id); deletePhysicalInventoryDetailRs.IsDeleted = true; UpdatePhysicalInventoryDetail(deletePhysicalInventoryDetailRs); }
public void DeletePhysicalInventoryDetail(int Id) { PhysicalInventoryDetail deletedPhysicalInventoryDetail = GetPhysicalInventoryDetailById(Id); Context.PhysicalInventoryDetail.Remove(deletedPhysicalInventoryDetail); Context.Entry(deletedPhysicalInventoryDetail).State = EntityState.Deleted; Context.SaveChanges(); }
public void UpdatePhysicalInventoryDetail(PhysicalInventoryDetail PhysicalInventoryDetail) { Context.Entry(PhysicalInventoryDetail).State = EntityState.Modified; Context.SaveChanges(); }
public void InsertPhysicalInventoryDetail(PhysicalInventoryDetail PhysicalInventoryDetail) { Context.PhysicalInventoryDetail.Add(PhysicalInventoryDetail); Context.Entry(PhysicalInventoryDetail).State = EntityState.Added; Context.SaveChanges(); }