public ActionResult SaveFormEdit() { objEst = new Estado(); objEst.SetId(Convert.ToInt32(Request["id"])); objEst.SetNombre(Request["txtNombre"]); objEst.SetDescripcion(Request["txtDescripcion"]); Color c = ColorTranslator.FromHtml(Request["fvColor"]); objEst.SetColor(ColorTranslator.ToHtml(c)); if (objEst.Editar() != 0) { return(View("exitoEditar")); } else { return(View("errorEditar")); } }