Last active
October 12, 2018 18:31
-
-
Save juanluelguerre/ba5b2c3abe11630d6ca335c560139afc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public ProjectsController( | |
IProjectService service, | |
ILogger<ProjectsController> logger) | |
{ | |
_service = service; | |
_logger = logger; | |
} | |
[HttpGet] | |
public async Task<ActionResult<IEnumerable<ProjectModel>>> GetAll() | |
{ | |
_logger.LogInformation($"Staring {nameof(GetAll)} ..."); | |
var response = await _service.GetAsync(); | |
_logger.LogInformation($"Ending {nameof(GetAll)} ..."); | |
return Ok(response); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment