public ActionResult ResetPassword(int?id) { Member member = memberRepo.Get(m => m.ID == id); if (member == null) { return(HttpNotFound()); } string queryString = "ResetPassword" + " @0"; memberRepo.SqlQuery(queryString, new List <string>() { id.ToString() }); return(RedirectToAction("Index")); }