public ActionResult Create(EditBasketModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    _customer.AddBasket(_mapper.Map <BasketDTO>(model));
                    return(RedirectToAction("Index"));
                }

                return(View(model));
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, $"An exception has occurred: {ex}");

                return(View(model));
            }
        }
        public ActionResult Edit(int id1, int id2, EditBasketModel model)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    _customer.UpdateStatus(id1, id2);
                    return(RedirectToAction("Index"));
                }

                return(View(model));
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, $"An exception has occurred: {ex}");

                return(View(model));
            }
        }
        public ActionResult Create()
        {
            var insertModel = new EditBasketModel();

            return(View(insertModel));
        }