Exemple #1
0
        private Response ObterTipoSegmentoPorId(RegistrarNovaTaxaCommand request)
        {
            var response = Response.Ok();

            TipoSegmento = TipoSegmento.ObterPorIdFor(request.Segmento);
            if (TipoSegmento is null)
            {
                response = Response.Fail(Errors.General.NotFound(nameof(TipoSegmento), request.Segmento));
                Logger.LogWarning($"{response.ErrorResponse}");

                return(response);
            }

            return(response);
        }
Exemple #2
0
        public void ObterPorId_SOLUCAO_4()
        {
            var tipoSegmento = TipoSegmento.ObterPorIdFor("private");

            Debug.WriteLine(tipoSegmento);
        }