Пример #1
0
 public async Task <UserRow> GetUserByIdAsync(int userId) =>
 (await DataFile.ReadFromFileAsync <UserRow>()).FirstOrDefault(a => a.UserId == userId);
Пример #2
0
 public async Task <AddressRow> GetAddressByUserIdAsync(int userId) =>
 (await DataFile.ReadFromFileAsync <AddressRow>()).FirstOrDefault(a => a.UserId == userId);