/// <summary> /// Method to Get List of SemesterSetup /// </summary> /// <param name="argEn">SemesterSetup Entity as an Input.</param> /// <returns>Returns List of SemesterSetup</returns> public List <SemesterSetupEn> GetListSemesterCode(SemesterSetupEn argEn) { try { SemesterSetupDAL loDs = new SemesterSetupDAL(); return(loDs.GetListSemesterCode(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get List of Semesters /// </summary> /// <param name="argEn">SemisterSetupCode as Input.</param> /// <returns>Returns List of SemesterSetup</returns> public SemesterSetupEn GetItemBySession(SemesterSetupEn argEn) { try { SemesterSetupDAL loDs = new SemesterSetupDAL(); return(loDs.GetItemBySession(argEn)); } catch (Exception ex) { throw ex; } }
public List <SemesterSetupEn> GetCurrentSessionList(SemesterSetupEn argEn) { try { SemesterSetupDAL loDs = new SemesterSetupDAL(); return(loDs.GetCurrentSessionList(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get SemesterSetup Entity /// </summary> /// <param name="argEn">SemesterSetup Entity is an Input.SAST_Code as Input Property.</param> /// <returns>Returns SemesterSetup Entity</returns> public SemesterSetupEn GetSessionItem(string argEn) { try { SemesterSetupDAL loDs = new SemesterSetupDAL(); return(loDs.GetSessionItem(argEn)); } catch (Exception ex) { throw ex; } }
//modified by Hafiz @ 10/6/2016 - added ProgramId public string FetchTotalBatchAmount(string BatchNumber, string ProgramId) { try { SemesterSetupDAL loDs = new SemesterSetupDAL(); return(loDs.FetchTotalBatchAmount(BatchNumber, ProgramId)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Delete SemesterSetup /// </summary> /// <param name="argEn">SemesterSetup Entity is an Input.</param> /// <returns>Returns Boolean</returns> public bool Delete(SemesterSetupEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { SemesterSetupDAL loDs = new SemesterSetupDAL(); flag = loDs.Delete(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }