// [HttpDelete] public ActionResult Delete(int id) { //code for db insert _dataAccessService.DeletePerson(id); return(RedirectToAction("Index")); }