Exemplo n.º 1
0
        public HttpResponse All()
        {
            if (!User.IsAuthenticated)
            {
                return(Error($"401 Unauthorized"));
            }

            var cars = carsService.AllCarsListing(User.Id);

            return(View(cars));
        }