public void CleanActivityConfigForDownloadAppCache() { using (var client = new ActivityClient()) { var result = client.CleanActivityConfigForDownloadAppCache(9); Assert.IsNotNull(result.Result); } }
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; } }