Example #1
0
 public int InsertSponsorSports(clsSponsor cs)
 {
     try
     {
         dataProvider.ExecuteNonQuery("usp_InsertSponsorSports", cs.SponsorId, cs.SportsId, cs.EventId, cs.SeasonId, cs.CompetitionId, cs.ClubId, cs.ClubOwnersId, cs.ClubMemberId, cs.TeamId, cs.TeamMemberId, cs.PlayerId);
     }
     catch (Exception ex)
     {
         Exceptions.LogException(ex);
     }
     return(0);
 }
Example #2
0
 public int InsertSponsor(clsSponsor cs)
 {
     try
     {
         dataProvider.ExecuteNonQuery("usp_InsertSponsor", cs.SponsorLevelId, cs.SponsorTypeId, cs.SponsorName, cs.SponsorAbbr, cs.SponsorDesc, cs.SponsorLogoName, cs.SponsorLogoFile, Convert.ToDateTime(cs.SponsorStartDate), Convert.ToDateTime(cs.SponsorEndDate), cs.SponsorAmt, cs.ActiveFlagId, cs.ShowFlagId, cs.PortalID, cs.CreatedById, cs.ModifiedById);
     }
     catch (Exception ex)
     {
         Exceptions.LogException(ex);
     }
     return(0);
 }
Example #3
0
        public int UpdateSponsorSport(clsSponsor cs)
        {
            int i = 0;

            try
            {
                //CompReg.CreatedBy,
                dataProvider.ExecuteNonQuery("usp_UpdateSponsorSport", cs.SponsorId, cs.SportsId, cs.EventId, cs.SeasonId, cs.CompetitionId, cs.ClubId, cs.ClubOwnersId, cs.ClubMemberId, cs.TeamId, cs.TeamMemberId, cs.PlayerId);
            }
            catch (Exception ex)
            {
                return(i);
            }
            return(i);
        }
Example #4
0
        public int UpdateSponsor(clsSponsor cs)
        {
            int i = 0;

            try
            {
                //CompReg.CreatedBy,
                dataProvider.ExecuteNonQuery("usp_UpdateSponsor", cs.SponsorId, cs.SponsorLevelId, cs.SponsorTypeId, cs.SponsorName, cs.SponsorAbbr, cs.SponsorDesc, cs.SponsorLogoName, cs.SponsorLogoFile, Convert.ToDateTime(cs.SponsorStartDate), Convert.ToDateTime(cs.SponsorEndDate), cs.SponsorAmt, cs.ActiveFlagId, cs.ShowFlagId, cs.PortalID, cs.ModifiedById);
            }
            catch (Exception ex)
            {
                return(i);
            }
            return(i);
        }
Example #5
0
 public DataTable GetSponsorLogoBySponsorID(clsSponsor cs)
 {
     using (DataTable dt = new DataTable())
     {
         try
         {
             using (IDataReader reader = dataProvider.ExecuteReader("usp_GetSponsorLogoBySponsorID", cs.SponsorId))
             {
                 dt.Load(reader);
                 return(dt);
             }
         }
         catch (Exception ex)
         {
             Exceptions.LogException(ex);
         }
         return(dt);
     }
 }