public async Task <IActionResult> OnGet(int id)
        {
            try
            {
                Category = await categoryServise.GetCategoryById(id);

                await categoryServise.DeleteById(id);

                State = true;
                return(Page());
            }
            catch (Exception e)
            {
                State             = false;
                ViewData["Error"] = e.Message;
                return(Page());
            }
        }
 public async Task OnGet(int id, string returnUrl = null)
 {
     returnUrl = returnUrl ?? Url.Content("~/");
     Category  = await categoryServise.GetCategoryById(id);
 }