public IActionResult Create(HomeDeliveryAddressInfo manageClient)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    if (manageClient.Id == 0)
                    {
                        terms.Insert(manageClient);
                        return(Json("1"));
                    }

                    else
                    {
                        terms.Update(manageClient);
                        return(Json("1"));
                    }
                }
            }
            catch (Exception e)
            {
                String S1 = e.ToString();
            }
            return(View(manageClient));
        }
        public IActionResult DeleteConfirmed(HomeDeliveryAddressInfo manage)
        {
            var id = manage.Id;

            terms.Delete(id);
            //return RedirectToAction(nameof(Index));
            return(Json("1"));
        }
        public IActionResult Create(int id = 0)
        {
            HomeDeliveryAddressInfo model = new HomeDeliveryAddressInfo();

            if (id > 0)
            {
                model = terms.GetById(id);
            }
            return(View(@"~/Areas/Admin/Views/HomeDeliveryAddressInfo/Create.cshtml", model));
        }