public IActionResult AdminEditSeller(AdminEditSellerViewModel model)
        {
            if (ModelState.IsValid)
            {
                Seller seller = _sallesRepository.GetSeller(model.Id);
                seller.BusinessName   = model.BusinessName;
                seller.InChargePerson = model.InChargePerson;
                seller.Country        = model.Country;
                seller.Location       = model.Location;
                seller.Address        = model.Address;
                seller.Telephone      = model.Telephone;
                seller.Mobile         = model.Mobile;
                seller.Email          = model.Email;
                seller.Web            = model.Web;
                seller.PlatformCharge = model.PlatformCharge;
                seller.RegistredDate  = model.RegistredDate;
                seller.BannerImg      = model.ExisitingProfilePhotoPath;
                seller.ProfileImg     = model.ExisitingProfilePhotoPath;
                seller.SalesGoodType  = model.SalesGoodType;
                seller.Description    = model.Description;
                if (model.ProfilePic != null)
                {
                    if (model.ExisitingProfilePhotoPath != null)
                    {
                        string filePath = Path.Combine(hostingEnvironment.WebRootPath, "img/Profile", model.ExisitingProfilePhotoPath);
                        System.IO.File.Delete(filePath);
                    }
                    seller.ProfileImg = ProcessProfilPicture(model);
                }

                if (model.BannerPic != null)
                {
                    if (model.ExisitingBannerPhotoPath != null)
                    {
                        string filePath = Path.Combine(hostingEnvironment.WebRootPath, "img/Cover", model.ExisitingBannerPhotoPath);
                        System.IO.File.Delete(filePath);
                    }
                    seller.BannerImg = ProcessBannerPicture(model);
                }

                _sallesRepository.AdmimUpdateSeller(seller);
                return(RedirectToAction("Index"));
            }

            return(View());
        }