added controller stub. before changing idataaccess to abstract class
This commit is contained in:
@ -41,5 +41,10 @@ namespace COA.EnterpriseServices.DataAccess.Helpers
|
||||
{
|
||||
return creditorDataAccess.Invoke(d => d.Add(creditor));
|
||||
}
|
||||
|
||||
public bool SetCreditorStatus(int creditorId, string status)
|
||||
{
|
||||
return creditorDataAccess.Invoke(d => d.Update(creditorId, c => c.Status = status));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,8 @@ namespace COA.EnterpriseServices.DataAccess
|
||||
|
||||
bool Update(T item);
|
||||
|
||||
bool Update(int id, Action<T> update);
|
||||
|
||||
ICollection<T> Get(Expression<Func<T, bool>> query);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user