public ActionResult PostAdd(NewsModel Models) { Models.UploadAuthorId = GetUser().Id; Models.EidtAuthorId = GetUser().Id; Models.UploadName = GetUser().Name; Models.EidtAuthorName = GetUser().Name; if (NSer.AddOrUpdate(Models) == true) { return(Content("1")); } else { return(View(Models)); } }