public List <employee_token> GetListEmployeeTokenByUDID(string UDID) { return(EmployeeTokenRepository.FindBy(p => p.udid == UDID).ToList()); }
public List <string> GetListTokenByEmployeeId(int employeeId) { return(EmployeeTokenRepository.FindBy(p => p.employee_id == employeeId).Select(p => p.token).ToList()); }
public employee_token GetEmployeeTokenByUDID(string UDID) { return(EmployeeTokenRepository.FindBy(p => p.udid == UDID).FirstOrDefault()); }