/// <summary> /// Method to Get Block Entity /// </summary> /// <param name="argEn">Block Entity is an Input</param> /// <returns>Returns Block Entity</returns> public BlockEn GetItem(BlockEn argEn) { try { BlockDAL loDs = new BlockDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get List of Blocks by BlockCode /// </summary> /// <param name="argEn">BlockCode is an Input.</param> /// <returns>Returns List of Blocks</returns> public List <BlockEn> GetBlockList(string argEn) { try { BlockDAL loDs = new BlockDAL(); return(loDs.GetBlockList(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Insert Blocks /// </summary> /// <param name="argEn">Block Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Insert(BlockEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { BlockDAL loDs = new BlockDAL(); flag = loDs.Insert(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }