public ActionResult Edit(NewModel model) { if (model.File != null && model.File.ContentLength > 0) { var fileName = Path.GetFileName(model.File.FileName); var path = Path.Combine(Server.MapPath("~/Upload/News/"), fileName); model.File.SaveAs(path); model.IMGPATH = fileName; } model.CONTENT = HttpUtility.HtmlDecode(model.CONTENT); var check = _newStoreService.UpdateNew(model); var msg = check ? "Update News Successfully" : "Update News Error"; return(Json(msg)); }