public DiamondsController(ILogger <DiamondsController> logger, IHostingEnvironment hostingEnvironment, IDiamondService diamondService) : base(hostingEnvironment) { if (diamondService == null) { throw new ArgumentException("Invalid argument DiamondService"); } if (logger == null) { throw new ArgumentException("Invalid argument Logger"); } _diamondService = diamondService; _logger = logger; }
public DiamondsController(IDiamondService diamondService) { _diamondService = diamondService; }