Implemented the ability to send images to frontend with some contextual information.
This commit is contained in:
parent
7ab7e8acc4
commit
7bf04dcdac
6 changed files with 74 additions and 10 deletions
|
@ -18,7 +18,11 @@ namespace API.Data
|
|||
|
||||
foreach (var role in roles)
|
||||
{
|
||||
await roleManager.CreateAsync(role);
|
||||
var exists = await roleManager.RoleExistsAsync(role.Name);
|
||||
if (!exists)
|
||||
{
|
||||
await roleManager.CreateAsync(role);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue