before adding COA packages
This commit is contained in:
@ -26,19 +26,32 @@ namespace COA.EnterpriseServices.DataAccess.Helpers
|
||||
|
||||
public ICollection<Creditor> FindByName(string name)
|
||||
{
|
||||
// TODO: use AutoMapper to return mapped domain objects!
|
||||
|
||||
return creditorDataAccess.Get(c => c.ClientFirstName.Contains(name) || c.ClientLastName.Contains(name));
|
||||
}
|
||||
|
||||
public ICollection<Creditor> FindByStatus(string status)
|
||||
{
|
||||
// TODO: use AutoMapper to return mapped domain objects!
|
||||
|
||||
return creditorDataAccess.Get(c => c.Status == status);
|
||||
}
|
||||
|
||||
public bool AddCreditor(Creditor creditor)
|
||||
{
|
||||
// TODO: use AutoMapper to pass in mapped domain object!
|
||||
|
||||
return creditorDataAccess.Add(creditor);
|
||||
}
|
||||
|
||||
public bool UpdateCreditor(Creditor creditor)
|
||||
{
|
||||
// TODO: use AutoMapper to pass in mapped domain object!
|
||||
|
||||
return creditorDataAccess.Update(creditor);
|
||||
}
|
||||
|
||||
public bool SetCreditorStatus(int creditorId, string status)
|
||||
{
|
||||
return creditorDataAccess.Update(creditorId, c => c.Status = status);
|
||||
|
Reference in New Issue
Block a user