Beispiel #1
0
        /// <summary>
        /// 取角色介紹
        /// </summary>
        /// <param name="RoleNo">角色編號</param>
        /// <returns></returns>
        public RoleEntity GetRole(int RoleNo)
        {
            List <RoleEntity> AllRole = new TarotData.Data.TarotData().GetRoleAllData();
            List <RoleEntity> Ro      = (from RoleEntity r in AllRole
                                         where r.No == RoleNo
                                         select r).ToList();

            return(Ro[0]);
        }
Beispiel #2
0
        /// <summary>
        /// 取流年運勢介紹
        /// </summary>
        /// <param name="RoleNo">角色編號</param>
        /// <returns></returns>
        public YearLuckEntity GetYearLuck(int RoleNo)
        {
            List <YearLuckEntity> AllYearLuck = new TarotData.Data.TarotData().GetRoleAllYearLuckData();
            List <YearLuckEntity> YL          = (from YearLuckEntity r in AllYearLuck
                                                 where r.No == RoleNo
                                                 select r).ToList();

            return(YL[0]);
        }