public async Task <ActionResult> Index()
        {
            var customerServices = new CustomerServices();

            try
            {
                var requestData = await customerServices.GetCustomers();

                return(View(requestData.Data));
            }
            catch (Exception e)
            {
                return(View("Error", new Error(e.Message)));
            }
        }
        public async Task <ActionResult> Edit(int?id)
        {
            if (!id.HasValue)
            {
                return(RedirectToAction(nameof(Index)));
            }

            var customerServices = new CustomerServices();

            try
            {
                var requestData = await customerServices.GetCustomerById(id.Value);

                return(View(requestData.Data.First()));
            }
            catch (Exception e)
            {
                return(View("Error", new Error(e.Message)));
            }
        }