/// <summary>Método que devuelve el response para la pantalla index de ruta</summary> /// <param name="request">Objeto request</param> /// <returns>Response de index para ruta</returns> /// <remarks><list type="bullet"> /// <item><CreadoPor>Wilmer Gómez Prado</CreadoPor></item> /// <item><FecCrea>02/02/2018</FecCrea></item> /// </list> /// <list type="bullet" > /// <item><FecActu>XXXX</FecActu></item> /// <item><Resp>XXXX</Resp></item> /// <item><Mot>XXXX</Mot></item></list></remarks> public PerfilResponseDto ListaOpcionesPorPerfil_Menu(short idPerfil) { try { return(PerfilLogic.ListaOpcionesPorPerfil_Menu(idPerfil)); } catch (Exception) { throw; } }
public static PerfilResponse ObtenerPaginado(PerfilLogic Logic) { PerfilResponse Response = new PerfilResponse(); Response.CodigoPerfil = Logic.CodigoPerfil; Response.CodigoSistema = Logic.CodigoSistema; Response.Sistema = Logic.Sistema; Response.Nombre = Logic.Nombre; Response.Descripcion = Logic.Descripcion; Response.CantTotalRegistros = Logic.CantTotalRegistros; //Obligatorios Response.EstadoRegistro = Logic.EstadoRegistro; Response.EstadoRegistroDescripcion = Logic.EstadoRegistroDescripcion; Response.NumeroFila = Logic.NumeroRegistro; Response.FilasTotal = Logic.TotalRegistro; return(Response); }
public ProcessResult <PerfilResponse> Obtener(int codigo) { ProcessResult <PerfilResponse> resultado = new ProcessResult <PerfilResponse>(); try { PerfilLogic lista = LogicRepository.Obtener(codigo); resultado.Result = new PerfilResponse(); if (resultado.Result != null) { resultado.Result = PerfilAdapter.ObtenerPaginado(lista); } } catch (Exception ex) { resultado.IsSuccess = false; resultado.Exception = new ApplicationLayerException <PerfilService>(ex); } return(resultado); }
public PerfilLogic Obtener(float codigo) { PerfilLogic entidadLogic = new PerfilLogic(); try { SQLServer.OpenConection(); SQLServer.CreateCommand("SEG.USP_SEL_PERFIL_OBTENER", CommandType.StoredProcedure, SQLServer.CreateParameter("CODIGO_PERFIL", SqlDbType.BigInt, codigo)); using (IDataReader oReader = SQLServer.GetDataReader(CommandBehavior.CloseConnection)) { entidadLogic = new GenericInstance <PerfilLogic>().readDataReader(oReader); } } catch (Exception ex) { throw ex; } finally { SQLServer.CloseConection(); } return(entidadLogic); }