added controller stub. before changing idataaccess to abstract class

This commit is contained in:
2020-10-15 07:07:32 -04:00
parent 1cd994b074
commit ec52a8233a
10 changed files with 73 additions and 56 deletions

View File

@ -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));
}
}
}

View File

@ -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);
}
}