示例#1
0
 public int InsertAlbum(clsAlbum cs)
 {
     try
     {
         return(Convert.ToInt32(dataProvider.ExecuteScalar("usp_InsertAlbum", cs.SportsId, cs.CountryId, cs.SeasonId, cs.CompetitionId, cs.ClubId, cs.ClubOwnersId, cs.ClubMemberId, cs.TeamId, cs.TeamMemberId, cs.SponsorId, cs.EventId, cs.PlayerId, cs.AlbumName, cs.AlbumDesc, cs.AlbamAbbr, Convert.ToDateTime(cs.AlbamDate), cs.AlbamType, cs.ActiveFlagId, cs.ShowFlagId, cs.PortalID, cs.CreatedById)));
     }
     catch (Exception ex)
     {
         Exceptions.LogException(ex);
     }
     return(0);
 }
示例#2
0
        public int UpdateAlbum(clsAlbum cs)
        {
            int i = 0;

            try
            {
                dataProvider.ExecuteNonQuery("usp_UpdateAlbum", cs.AlbamId, cs.SportsId, cs.CountryId, cs.SeasonId, cs.CompetitionId, cs.ClubId, cs.ClubOwnersId, cs.ClubMemberId, cs.TeamId, cs.TeamMemberId, cs.SponsorId, cs.EventId, cs.PlayerId, cs.AlbumName, cs.AlbumDesc, cs.AlbamAbbr, Convert.ToDateTime(cs.AlbamDate), cs.AlbamType, cs.ActiveFlagId, cs.ShowFlagId, cs.PortalID, cs.ModifiedById);
            }
            catch (Exception ex)
            {
                return(i);
            }
            return(i);
        }