-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actividad inicial finalizada #152
base: master
Are you sure you want to change the base?
Conversation
} | ||
catch (Exception ex) | ||
{ | ||
logger.LogCritical(ex.StackTrace); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se podria usar otro metodo del logger que no sea LogCritical.
Segun tu punto de vista, cual podria ser y porque ?
catch (Exception ex) | ||
{ | ||
logger.LogCritical(ex.StackTrace); | ||
return Ok(new { Success = false, Message = "The name is already in use" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aqui, al retornar un "Ok", estas retornando un HTTP status 200 al cliente. Que no seria correcto...
Quizas este articulo te de una pista sobre que retornar ahi.
var result = service.GetAll(); | ||
return mapper.Map<IEnumerable<ProviderDTO>>(result).ToList(); | ||
} | ||
catch (Exception) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se podria loggear la Exception
var result = service.Get(id); | ||
return mapper.Map<ProviderDTO>(result); | ||
} | ||
catch (Exception) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se podria loggear la Exception
model.Condition.Equals(ActionDto.AND)); | ||
} | ||
|
||
/*if (!string.IsNullOrWhiteSpace(model.Address)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No es buena practica dejar codigo comentado
|
||
public string Email { get; set; } | ||
|
||
//public List<Product> OfferedProducts { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No es buena practica dejar codigo comentado
|
||
public ActionDto Condition { get; set; } | ||
|
||
//public List<Product> OfferedProducts { get; set; } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No es buena practica dejar codigo comentado
Description
Issues
Opinion