public async Task <IActionResult> AddToShoppingCart(int clothesId)
        {
            var selectedClothes = await cr.GetByIdAsync(clothesId);

            if (selectedClothes != null)
            {
                await sc.AddToCartAsync(selectedClothes, 1);
            }
            return(RedirectToAction("Index"));
        }
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }
            var clothes = await cr.GetByIdAsync(id);

            if (clothes == null)
            {
                return(NotFound());
            }
            return(View(clothes));
        }
        public async Task <IActionResult> Edit(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var clothes = await cr.GetByIdAsync(id);

            if (clothes == null)
            {
                return(NotFound());
            }
            ViewData["ServicesId"] = new SelectList(sr.GetAll(), "Id", "Name", clothes.ServicesId);
            return(View(clothes));
        }