public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } bool Result = _surveyManager.Delete(id.Value); return(Content(Result.ToString())); }