Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exemplo para injetar a interface do AutoMappper
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
You can’t perform that action at this time.