public CookiesCartService(IServiceAllData serviceAllData, IHttpContextAccessor http) { _dataBase = serviceAllData; _httpAccessor = http; _CartName = $"{http.HttpContext.User.Identity.Name}_cart"; }
public CartController(IServiceCart CartService, IServiceAllData DataBase) { _CartService = CartService; _DataBase = DataBase; }