public ActionResult BtnBanUser() { try { int idgrupo = int.Parse(Request.QueryString[0]); int iduser = int.Parse(Request.QueryString[1]); using (GrupoModel model = new GrupoModel()) { model.BanUser(idgrupo, iduser); } return(RedirectToAction("Members", "Grupo", new { GrupoID = idgrupo })); } catch (Exception ex) { Console.WriteLine("{0} Exception caught", ex); return(RedirectToAction("Erro404", "Error")); } }