public ProcessResult <PermisosResponse> Obtener(float codigo)
        {
            ProcessResult <PermisosResponse> resultado = new ProcessResult <PermisosResponse>();

            try
            {
                PermisosLogic lista = LogicRepository.Obtener(codigo);

                resultado.Result = new PermisosResponse();

                if (resultado.Result != null)
                {
                    resultado.Result = PermisosAdapter.ObtenerPaginado(lista);
                }
            }
            catch (Exception ex)
            {
                resultado.IsSuccess = false;
                resultado.Exception = new ApplicationLayerException <PermisosService>(ex);
            }

            return(resultado);
        }
        public ProcessResult <List <PermisosResponse> > Listar()
        {
            ProcessResult <List <PermisosResponse> > resultado = new ProcessResult <List <PermisosResponse> >();

            try
            {
                List <PermisosLogic> lista = LogicRepository.Listar();

                resultado.Result = new List <PermisosResponse>();

                foreach (PermisosLogic item in lista)
                {
                    PermisosResponse Response = PermisosAdapter.ObtenerPaginado(item);
                    resultado.Result.Add(Response);
                }
            }
            catch (Exception ex)
            {
                resultado.IsSuccess = false;
                resultado.Exception = new ApplicationLayerException <PermisosService>(ex);
            }

            return(resultado);
        }
        public ProcessResult <List <PermisosResponse> > Buscar(PermisosRequest filtro)
        {
            ProcessResult <List <PermisosResponse> > resultado = new ProcessResult <List <PermisosResponse> >();

            try
            {
                List <PermisosLogic> lista = LogicRepository.Buscar(
                    filtro.CodigoPermisos,
                    filtro.CodigoPerfil,
                    filtro.CodigoAccion,
                    filtro.CodigoOpcion,
                    filtro.Perfil,
                    filtro.Accion,
                    filtro.Opcion,
                    filtro.EstadoPermisoDescripcion,
                    filtro.EstadoRegistro,
                    filtro.EstadoRegistroDescripcion,
                    filtro.NumeroPagina,
                    filtro.RegistrosPagina);

                resultado.Result = new List <PermisosResponse>();

                foreach (PermisosLogic item in lista)
                {
                    PermisosResponse Response = PermisosAdapter.ObtenerPaginado(item);
                    resultado.Result.Add(Response);
                }
            }
            catch (Exception ex)
            {
                resultado.IsSuccess = false;
                resultado.Exception = new ApplicationLayerException <PermisosService>(ex);
            }

            return(resultado);
        }