Some changes to get register/login flow working smoothly with Admin role.

This commit is contained in:
Joseph Milazzo 2020-12-22 17:28:38 -06:00
parent 259b954f26
commit bb276a5984
6 changed files with 26 additions and 21 deletions

View file

@ -62,11 +62,6 @@ namespace API.Data
.ProjectTo<MemberDto>(_mapper.ConfigurationProvider)
.SingleOrDefaultAsync();
}
public async Task<bool> AdminExists()
{
return await _context.Users.AnyAsync(x => x.IsAdmin);
}
}
}