public ActionResult Delete(int formId) { Form deletedForm = formRepo.DeleteForm(formId); if (deletedForm != null) { // TODO: Fix this. Partnership Night was removed from Form class //TempData["message"] = string.Format("Form for Partnership Night {0} was deleted", //deletedForm.pNight.Date); } return(RedirectToAction("Index")); }