Exemple #1
0
        public IHttpActionResult Get(int instrumentId)
        {
            var item = _instrumentsService.GetInstrument(instrumentId);

            if (item == null)
            {
                return(NotFound());
            }

            var model = new InstrumentModel();

            Mapper.Map(item, model);
            return(Ok(model));
        }
        public async Task <IActionResult> Get(int id)
        {
            Instrument instrument = await _instrumentsService.GetInstrument(id);

            return(Ok(instrument));
        }