public IActionResult EditRole(string Id, string Name)
        {
            ApplicaionRoles findrole = roleManager.FindByIdAsync(Id).Result;

            findrole.Name = Name;
            var result = roleManager.UpdateAsync(findrole).Result;

            if (result.Succeeded)
            {
                return(RedirectToAction(nameof(Roles)));
            }
            else
            {
                foreach (var item in result.Errors)
                {
                    ModelState.AddModelError(item.Code, item.Description);
                }
            }
            return(View(findrole));
        }
        public IActionResult AddRole(ApplicaionRoles roles)
        {
            var result = roleManager.CreateAsync(roles).Result;

            return(RedirectToAction(nameof(Roles)));
        }