using System.Collections.Generic; using System.Threading.Tasks; using API.Constants; using API.Entities; using Microsoft.AspNetCore.Identity; namespace API.Data { public static class Seed { public static async Task SeedRoles(RoleManager roleManager) { var roles = new List { new() {Name = PolicyConstants.AdminRole}, new() {Name = PolicyConstants.PlebRole} }; foreach (var role in roles) { await roleManager.CreateAsync(role); } } } }