Пример #1
0
 public int InsertEventSports(clsEvent cs)
 {
     try
     {
         dataProvider.ExecuteNonQuery("usp_InsertEventSports", cs.EventID, cs.SportsId, cs.SeasonId, cs.CompetitionId, cs.TeamId, cs.TeamMemberId, cs.ClubId, cs.ClubMemberId, cs.ClubOwnersId, cs.SponsorId);
     }
     catch (Exception ex)
     {
         Exceptions.LogException(ex);
     }
     return(0);
 }
Пример #2
0
 public int InsertEvent(clsEvent cs)
 {
     try
     {
         dataProvider.ExecuteNonQuery("usp_InsertEvent", cs.EventName, cs.EventDetail, Convert.ToDateTime(cs.EventStartDateTime), Convert.ToDateTime(cs.EventEndDateTime), cs.EventActive, cs.EventPriority, cs.PortalID, cs.CreatedById, cs.ModifiedById);
     }
     catch (Exception ex)
     {
         Exceptions.LogException(ex);
     }
     return(0);
 }
Пример #3
0
        public int UpdateEventSport(clsEvent cs)
        {
            int i = 0;

            try
            {
                //CompReg.CreatedBy,
                dataProvider.ExecuteNonQuery("usp_UpdateEventSport", cs.EventID, cs.SportsId, cs.SeasonId, cs.CompetitionId, cs.TeamId, cs.TeamMemberId, cs.ClubId, cs.ClubMemberId, cs.ClubOwnersId, cs.SponsorId);
            }
            catch (Exception ex)
            {
                return(i);
            }
            return(i);
        }
Пример #4
0
        public int UpdateEvent(clsEvent cs)
        {
            int i = 0;

            try
            {
                //CompReg.CreatedBy,
                dataProvider.ExecuteNonQuery("usp_UpdateEvent", cs.EventID, cs.EventName, cs.EventDetail, Convert.ToDateTime(cs.EventStartDateTime), Convert.ToDateTime(cs.EventEndDateTime), cs.EventActive, cs.EventPriority, cs.PortalID, cs.ModifiedById);
            }
            catch (Exception ex)
            {
                return(i);
            }
            return(i);
        }