예제 #1
0
        public async Task <ActionResult> GetEntityById(int id)
        {
            try
            {
                var item = await _carsService.GetEntityById(id);

                if (item == null)
                {
                    return(NotFound());
                }
                return(Ok(item));
            }
            catch (Exception e)
            {
                //Need to change this somehow
                Console.WriteLine(e);
                throw;
            }
        }