/// <summary> /// Method to Get SponsorCoverLetter /// </summary> /// <param name="argEn">SponsorCoverLetter Entity is an Input.</param> /// <returns>Returns List of SponsorCoverLetterEn.</returns> public List <SponsorCoverLetterEn> GetList(SponsorCoverLetterEn argEn) { try { SponsorCoverLetterDAL loDs = new SponsorCoverLetterDAL(); return(loDs.GetList(argEn)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Get Program By Sponsor /// </summary> /// <param name="SponsorId">SponsorId is an Input.</param> /// <returns>Returns List of ProgramInfoEn.</returns> public List <ProgramInfoEn> GetProgramBySponsor(string SponsorId) { try { SponsorCoverLetterDAL loDs = new SponsorCoverLetterDAL(); return(loDs.GetProgramBySponsor(SponsorId)); } catch (Exception ex) { throw ex; } }
/// <summary> /// Method to Delete SponsorCoverLetter /// </summary> /// <param name="argEn">SponsorCoverLetter Entity is an Input.SASCL_Code is Property.</param> /// <returns>Returns a Boolean</returns> public bool Delete(SponsorCoverLetterEn argEn) { bool flag; using (TransactionScope ts = new TransactionScope()) { try { SponsorCoverLetterDAL loDs = new SponsorCoverLetterDAL(); flag = loDs.Delete(argEn); ts.Complete(); } catch (Exception ex) { throw ex; } } return(flag); }