public ActionResult Delete(string nr, FormCollection collection) { // TODO: Add delete logic here IStaffService ss = new StaffService(Settings.Default.db); bool result = ss.DeleteByNr(nr); if (result) { return(RedirectToAction("Index")); } else { SetDropDownList(null); return(View()); } }