2020-10-14 15:03:25 +00:00
|
|
|
|
using COA.EnterpriseServices.DataAccess.Entities;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace COA.EnterpriseServices.DataAccess.Helpers
|
|
|
|
|
{
|
2020-10-15 12:08:02 +00:00
|
|
|
|
public class ClientHelper
|
2020-10-14 15:03:25 +00:00
|
|
|
|
{
|
2020-10-15 12:08:02 +00:00
|
|
|
|
private readonly DataAccessManager<Client> clientDataAccess;
|
|
|
|
|
|
|
|
|
|
public ClientHelper(DataAccessManager<Client> clientDataAccess)
|
|
|
|
|
{
|
|
|
|
|
this.clientDataAccess = clientDataAccess;
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 15:03:25 +00:00
|
|
|
|
public ICollection<Client> FindByEmail(string email)
|
|
|
|
|
{
|
2020-10-15 12:08:02 +00:00
|
|
|
|
return clientDataAccess.Get(c => c.Email.Equals(email));
|
2020-10-14 15:03:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|