//[Authorize] public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } return(View(_surveyManager.GetEdit(id.Value))); }