//validate raw material details before calling update public override bool UpdateRawMaterialBL(RawMaterial updateRawMaterial, List <RawMaterial> updatedRawMaterialList) { bool rawMaterialUpdated = false; try { if (ValidateRawMaterial(updateRawMaterial)) { RawMaterialDAL rawMaterialDAL = new RawMaterialDAL(); rawMaterialUpdated = rawMaterialDAL.UpdateRawMaterialDAL(updateRawMaterial, updatedRawMaterialList); } } catch (InventoryException) { throw; } catch (SystemException ex) { throw ex; } return(rawMaterialUpdated); }
public static bool UpdateRawMaterialBL(RawMaterial updateRawMaterial) { bool rawMaterialUpdated = false; try { if (ValidateRawMaterial(updateRawMaterial)) { RawMaterialDAL rawMaterialDAL = new RawMaterialDAL(); rawMaterialUpdated = rawMaterialDAL.UpdateRawMaterialDAL(updateRawMaterial); } } catch (InventoryException) { throw; } catch (SystemException ex) { throw ex; } return(rawMaterialUpdated); }