/// <summary> /// Method to Get DegreeType Entity /// </summary> /// <param name="argEn">DegreeType Entity is an Input</param> /// <returns>Returns DegreeType Entity</returns> public DegreeTypeEn GetItem(DegreeTypeEn argEn) { try { DegreeTypeDAL loDs = new DegreeTypeDAL(); return(loDs.GetItem(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get List of Active or Inactive DegreeTypes /// </summary> /// <param name="argEn">DegreeType Entity is an Input.DegreeTypeCode,Description,SName and Status are Input Parameters</param> /// <returns>Returns List of DegreeTypes</returns> public List <DegreeTypeEn> GetDegreeTypeList(DegreeTypeEn argEn) { try { DegreeTypeDAL loDs = new DegreeTypeDAL(); return(loDs.GetDegreeTypeList(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Update DegreeType /// </summary> /// <param name="argEn">DegreeType Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Update(DegreeTypeEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { DegreeTypeDAL loDs = new DegreeTypeDAL(); flag = loDs.Update(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }