public ComputersController(IComputersService computersService, IGraphicsCardsService graphicsCardsService, IUrlHelper urlHelper, IMapper mapper) { _computersService = computersService; _graphicsCardsService = graphicsCardsService; _urlHelper = urlHelper; _mapper = mapper; }
public ManageController(IVerificationProvider verification, IMapper mapper, IUsersService usersService, IComputersService computersService, ILaptopsService laptopsService, IDisplaysService displaysService) { Guard.WhenArgument(verification, nameof(verification)).IsNull().Throw(); Guard.WhenArgument(mapper, nameof(mapper)).IsNull().Throw(); Guard.WhenArgument(usersService, nameof(usersService)).IsNull().Throw(); Guard.WhenArgument(computersService, nameof(computersService)).IsNull().Throw(); Guard.WhenArgument(laptopsService, nameof(laptopsService)).IsNull().Throw(); Guard.WhenArgument(displaysService, nameof(displaysService)).IsNull().Throw(); this.verification = verification; this.mapper = mapper; this.usersService = usersService; this.computersService = computersService; this.laptopsService = laptopsService; this.displaysService = displaysService; }
public ComputersController(IComputersService service) { this.service = service; }