// [Authorize()] public async Task <ActionResult <IEnumerable <RoleReadDto> > > Get() { _logger.LogTrace("get roles"); return(Ok(_mapper.Map <IEnumerable <RoleReadDto> >(await _repo.GetRoles()))); }
public IQueryable <RoleModel> GetRoles() { return(_IRoleRepo.GetRoles()); }