Пример #1
0
 //获取地址列表
 public List <AddressModel> GetAddressList(Guid MemberId)
 {
     try { return(MDal.GetAddressList(MemberId)); }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
Пример #2
0
 /// <summary>
 /// 取用户当前区域的地址列表
 /// </summary>
 /// <param name="userId"></param>
 /// <param name="countryId"></param>
 /// <returns></returns>
 public IList <AddressModel> GetAddressList(int userId, int countryId, int language)
 {
     try
     {
         string key = "Address_" + userId + "_" + countryId;
         //return RedisCacheHelper.AutoCache(ConstClass.RedisKey4MPrefix, key, () => dal.GetAddressList(userId, countryId), 5);
         return(dal.GetAddressList(userId, countryId, language));
     }
     catch (Exception ex)
     {
         LogHelper.Error(ex);
     }
     return(null);
 }