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); }
public void ObterPorId_SOLUCAO_4() { var tipoSegmento = TipoSegmento.ObterPorIdFor("private"); Debug.WriteLine(tipoSegmento); }