//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); }
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); }