Exemplo n.º 1
0
        public IHttpActionResult GetGood([FromUri] int id)
        {
            Task.Delay(1500).GetAwaiter().GetResult();

            try
            {
                var data = _goodService.GetDetailsGood <dynamic>(id, GetCurrentCurrency(), GetCurrentLanguage());
                return(Ok(data));
            }
            catch (Exception e)
            {
                return(BadRequest());
            }
        }