예제 #1
0
        //calling search method
        public override List <RawMaterial> SearchRawMaterialByNameBL(string searchRawMaterialName)
        {
            List <RawMaterial> searchRawMaterialList = null;

            try
            {
                RawMaterialDAL rawMaterialDAL = new RawMaterialDAL();
                searchRawMaterialList = rawMaterialDAL.SearchRawMaterialByNameDAL(searchRawMaterialName);
            }
            catch (InventoryException ex)
            {
                throw ex;
            }
            catch (SystemException ex)
            {
                throw ex;
            }
            return(searchRawMaterialList);
        }
예제 #2
0
        public static RawMaterial SearchRawMaterialByNameBL(string searchRawMaterialName)
        {
            RawMaterial searchRawMaterial = null;

            try
            {
                RawMaterialDAL rawMaterialDAL = new RawMaterialDAL();
                searchRawMaterial = rawMaterialDAL.SearchRawMaterialByNameDAL(searchRawMaterialName);
            }
            catch (InventoryException ex)
            {
                throw ex;
            }
            catch (SystemException ex)
            {
                throw ex;
            }
            return(searchRawMaterial);
        }