예제 #1
0
        //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);
        }
예제 #2
0
        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);
        }