public void CleanActivityConfigForDownloadAppCache()
 {
     using (var client = new ActivityClient())
     {
         var result = client.CleanActivityConfigForDownloadAppCache(9);
         Assert.IsNotNull(result.Result);
     }
 }
示例#2
0
        public ActionResult UpdateDownloadApp(DownloadApp model, int id)
        {
            var status = false;

            try
            {
                if (DownloadAppManager.UpdateDownloadApp(model, id))
                {
                    using (var client = new ActivityClient())
                    {
                        var result = client.CleanActivityConfigForDownloadAppCache(id);
                        status = result.Success;
                    }
                }
                return(Json(status));
            }
            catch (Exception ex)
            {
                return(Json(false));

                throw ex;
            }
        }