public TodolistController(ITodolistService todolistService, UserManager <User> userManager) { _todolistService = todolistService ?? throw new ArgumentNullException(nameof(todolistService)); _userManager = userManager ?? throw new ArgumentNullException(nameof(userManager)); }
public TodolistController(ITodolistService service) { _service = service; }