public CarModel GetShoppingCart([FromForm] string username)
        {
            var      user = HttpContext.User.Claims.First(c => c.Type == ClaimTypes.Email).Value;
            CarModel car  = _userService.GetModelForUser(user);

            return(car);
        }
Example #2
0
        public CarModel GetCarForUser([FromForm] string car_id)
        {
            string[] input = car_id.Split(':');
            int      carID = Convert.ToInt32(input[1]);

            return(_userService.GetModelForUser(carID));
        }