public async Task <IEnumerable <UserStatusLog> > GetUserStatusLogList(int userId) => await _userStatusLogRepository.CustomFind(x => x.User.Id == userId, x => x.UserStatusFrom, x => x.UserStatusTo, x => x.User);
public async Task <UserStatusLog> GetUserLog(int idUser) => (await _userStatusLogRepository.CustomFind(x => x.User.Id == idUser)).FirstOrDefault();