BLL.TiposIngresos.Editar C# (CSharp) Method

Editar() public method

public Editar ( ) : bool
return bool
        public override bool Editar()
        {
            bool retorno = false;

            try
            {
                if (this.EsActivo)
                {
                    retorno = Conexion.Ejecutar(string.Format("update TiposIngresos set Descripcion = '{0}', EsActivo = {1}, UsuarioId = {2} where TipoIngresoId = {3}", this.Descripcion, 1, this.UsuarioId, this.TipoIngresoId));
                }
                else
                {
                    retorno = Conexion.Ejecutar(string.Format("update TiposIngresos set Descripcion = '{0}', EsActivo = {1}, UsuarioId = {2} where TipoIngresoId = {3}", this.Descripcion, 0, this.UsuarioId, this.TipoIngresoId));
                }
            }
            catch (Exception)
            {

                retorno = false;
            }

            return retorno;
        }