Пример #1
0
 public async Task <ActionResult <List <Lib.MemberPrizePunishDto> > > ReadDtos <MemberPrizePunishDto, MemberPrizePunishSearch>([FromQuery] Lib.MemberPrizePunishSearch SearchCondition)
 {
     return(await _DataRepository.GetEntitiesAsync(SearchCondition).ConfigureAwait(false));
 }
        /// <summary>
        /// 按条件查询数据
        /// </summary>
        /// <param name="SearchCondition"></param>
        /// <returns></returns>
        public static async Task <IEnumerable <Lib.MemberPrizePunishDto> > GetRecords(Lib.MemberPrizePunishSearch SearchCondition)
        {
            IEnumerable <Lib.MemberPrizePunishDto> RecList = null;
            //创建查询url参数
            string urlParams = DataApiRepository.CreateUrlParams(SearchCondition);

            if (urlParams.Length > 0)
            {
                RecList = await DataApiRepository.GetApiUri <IEnumerable <Lib.MemberPrizePunishDto> >(_ApiUrlBase + "ReadDtos" + urlParams).ConfigureAwait(false);
            }
            return(RecList);
        }