Пример #1
0
        /// <summary>
        /// 修改活动信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        public static async Task <bool> UpdateActivityAsync(T_Activity_xhrModel request)
        {
            using (var hashClient = CacheHelper.CreateHashClient("GetAllActivity"))
            {
                try
                {
                    var result = await DalActivity.UpdateActivityAsync(request);

                    hashClient.RemoveSelf();
                    return(result);
                }
                catch (Exception ex)
                {
                    Logger.Error($"UpdateActivityAsync -> {JsonConvert.SerializeObject(request)}", ex);
                    throw ex;
                }
            }
        }