public async Task <ActionResult> AddNewsCategory(NewsCategoryViewModel model) { if (!ModelState.IsValid) { return(View(model)); } IBLL.INewsManager Manager = new NewsManager(); await Manager.AddNewsCategory(model.CategoryId, model.CategoryName); return(Content("添加成功")); }