public IActionResult OnPost(IFormFile imgUp, int id, int deleteId) { if (imgUp != null) { _productService.AddGallary(imgUp, id); return(RedirectToPage("AddToGallary")); } if (deleteId != 0) { _productService.DeleletFromGallary(deleteId); } ViewData["gallariImg"] = _productService.GetGallaryProduct(id); return(Page()); }