public PaymentRecord CreatePayment(PaymentRecord payment) { return(Execute(session => { var svc = new MoneySourceService(); return svc.CreatePayment(payment, null, null); })); }
public MoneySource GetById(string id) { return(Execute(session => { var svc = new MoneySourceService(); return svc.GetById(id); })); }
public List <MoneySource> GetAll() { return(Execute(session => { var svc = new MoneySourceService(); return svc.GetAll(session.User); })); }
public ObjectPermissions GetObjectPermissions(string moneySourceId) { return(Execute(session => { var svc = new MoneySourceService(); return svc.GetPermissions(moneySourceId); })); }
public HttpResponseMessage UpdatePayment(PaymentRecord payment) { return(Execute(session => { var svc = new MoneySourceService(); svc.UpdatePayment(payment, null, null); return Request.CreateResponse(HttpStatusCode.OK); })); }
public HttpResponseMessage Update(MoneySource source) { return(Execute(session => { var svc = new MoneySourceService(); svc.Update(source); return Request.CreateResponse(HttpStatusCode.OK); })); }
public HttpResponseMessage SetObjectPermissions(ObjectPermissions permissions) { return(Execute(session => { var svc = new MoneySourceService(); svc.SetPermission(permissions); return Request.CreateResponse(HttpStatusCode.OK); })); }
public HttpResponseMessage DeletePayment(string id) { return(Execute(session => { var svc = new MoneySourceService(); svc.DeletePayment(id, null, null); return Request.CreateResponse(HttpStatusCode.NoContent); })); }
public MoneySource Insert(MoneySource source) { return(Execute(session => { var svc = new MoneySourceService(); source.Owner = session.User; return svc.Insert(source); })); }