narsil/Tanshu.Accounts.Repository/ReprintBI.cs

31 lines
737 B
C#
Raw Normal View History

2018-08-24 10:41:33 +00:00
using RestSharp;
using System;
using System.Collections.Generic;
using Tanshu.Accounts.Entities;
namespace Tanshu.Accounts.Repository
{
2018-08-24 10:41:33 +00:00
public static class ReprintBI
{
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);
}
}
}