public async Task <AppUsersScreen?> GetScreenForUserAsync(string userId)
        {
            if (!Guid.TryParse(userId, out var userGuid))
            {
                return(null);
            }

            return(AppUsersScreenMapper.MapFromDomain(await RepositoryDbSet
                                                      .AsNoTracking()
                                                      .Include(s => s.Screen)
                                                      .FirstOrDefaultAsync(s => s.AppUserId.Equals(userGuid))));
        }
Beispiel #2
0
 public async Task <AppUsersScreen> GetScreenForUserAsync(string userId)
 {
     return(AppUsersScreenMapper.MapFromInternal(await Uow.AppUsersScreens.GetScreenForUserAsync(userId)));
 }