Esempio n. 1
0
        public SearchCoachAndGymResponse SearchCoachAndGym(SearchCoachAndGymRequest request)
        {
            var result = base.CreateResponse <SearchCoachAndGymResponse>("查找教练和场馆信息");

            try
            {
                using (var con = new DbConnectionProvider(dbName).GetOpenConnection())
                {
                    result.CoachAndGymList = con.Query <BriefCoachAndGymDTO>("sp_SearchCoachAndGym", request, CommandType.StoredProcedure).ToList();
                }
            }
            catch (Exception ex)
            {
                base.HandleResponseException(ref result, ex);
            }
            return(result);
        }
Esempio n. 2
0
 public SearchCoachAndGymResponse SearchCoachAndGym(SearchCoachAndGymRequest request)
 {
     return(BasicDataManager.GetInstance().SearchCoachAndGym(request));
 }