Created
March 21, 2018 14:26
-
-
Save mdcarmo/2eee6d7a673041bfc43f40d7c7de4248 to your computer and use it in GitHub Desktop.
Exemplo para injetar a interface do AutoMappper
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 class UserController: Controller | |
{ | |
private UserService _service; | |
private IMapper _mapper; | |
/// <summary> | |
/// Construtor | |
/// </summary> | |
/// <param name="service"></param> | |
/// <param name="mapper"></param> | |
public UserController(UserService service, IMapper mapper) | |
{ | |
_service = service; | |
_mapper = mapper; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment