public ActionResult CreateAjax(RecordModel Record) { if (ModelState.IsValid) { Record.Create(); return(new EmptyResult()); } else { return(new HttpStatusCodeResult(400, "input error")); } }