2018-08-24 10:41:33 +00:00
|
|
|
|
using RestSharp;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2011-08-23 07:10:05 +00:00
|
|
|
|
using Tanshu.Accounts.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Tanshu.Accounts.Repository
|
|
|
|
|
{
|
2018-08-24 10:41:33 +00:00
|
|
|
|
public static class ReprintBI
|
2011-08-23 07:10:05 +00:00
|
|
|
|
{
|
2018-08-24 10:41:33 +00:00
|
|
|
|
public static Reprint Insert(Reprint reprint)
|
|
|
|
|
{
|
|
|
|
|
var request = new RestRequest(Method.PUT);
|
|
|
|
|
request.Resource = "Reprint.json";
|
|
|
|
|
request.AddJsonBody(new
|
|
|
|
|
{
|
|
|
|
|
User = new
|
|
|
|
|
{
|
|
|
|
|
UserID = reprint.User.UserID
|
|
|
|
|
},
|
|
|
|
|
Voucher = new
|
|
|
|
|
{
|
|
|
|
|
VoucherID = reprint.Voucher.VoucherID
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
return JsonStore.Execute<Reprint>(request);
|
|
|
|
|
}
|
2011-08-23 07:10:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|