//calling search method public override List <RawMaterial> SearchRawMaterialByCodeBL(string searchRawMaterialCode) { List <RawMaterial> searchRawMaterialList = null; try { RawMaterialDAL rawMaterialDAL = new RawMaterialDAL(); searchRawMaterialList = rawMaterialDAL.SearchRawMaterialByCodeDAL(searchRawMaterialCode); } catch (InventoryException ex) { throw ex; } catch (SystemException ex) { throw ex; } return(searchRawMaterialList); }
public static RawMaterial SearchRawMaterialByCodeBL(string searchRawMaterialCode) { RawMaterial searchRawMaterial = null; try { RawMaterialDAL rawMaterialDAL = new RawMaterialDAL(); searchRawMaterial = rawMaterialDAL.SearchRawMaterialByCodeDAL(searchRawMaterialCode); } catch (InventoryException ex) { throw ex; } catch (SystemException ex) { throw ex; } return(searchRawMaterial); }