Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Implementación de las tareas solicitadas en la primera reunion #146

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tspignoux
Copy link

Description

Aquí deberías agregar un resumen del trabajo que realizaste.

Issues

Aquí deberías contar si tuviste algún problema o en el caso de que reportaste un issue.

Ej:
Related to #(issue)
Fixes # (issue)

Opinion

Si querés dejar algún comentario al respecto: improvements, mistakes, weaknesses.

try
{
var result = service.Get(id);
if (result == null)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Esto esta bien? cuando la variable result es null, se hace un maper... y cuando es distinto de null, devolves un "NotFound" .. Verificar

var result = service.GetAll();
return mapper.Map<IEnumerable<ProviderDTO>>(result).ToList();
}
catch (Exception ex)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En esta linea, estaria bueno ser consistente con la linea 47, y tambien loggear el posible error .. Ademas estas usando la sobrecarga del catch y no estas usando la variable "ex".

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants