Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public DiamondsController(IDiamondService diamondService)
 {
     _diamondService = diamondService;
 }