Example #1
0
        public HeroesGuildInfo GetGuildInfo(int guildSN)
        {
            HeroesGuildInfo result = null;

            try
            {
                HeroesGuildDBDataContext heroesGuildDBDataContext = new HeroesGuildDBDataContext();
                ISingleResult <GuildGetInfoBySnResult> source     = heroesGuildDBDataContext.GuildGetInfoBySn(new int?(GuildAPI.ServerCode), new int?(guildSN));
                GuildGetInfoBySnResult guildGetInfoBySnResult     = source.SingleOrDefault <GuildGetInfoBySnResult>();
                if (guildGetInfoBySnResult != null)
                {
                    result = new HeroesGuildInfo(guildGetInfoBySnResult.dtCreateDate, guildGetInfoBySnResult.GuildID, guildGetInfoBySnResult.GuildName, guildGetInfoBySnResult.GuildSN, guildGetInfoBySnResult.Intro, guildGetInfoBySnResult.NameInGroup_Master, guildGetInfoBySnResult.NexonSN_Master, guildGetInfoBySnResult.RealUserCount);
                }
            }
            catch (Exception ex)
            {
                Log <HeroesGuildAPI> .Logger.Error("Error in GetGuildInfo(int guildSN)", ex);
            }
            return(result);
        }