using BBWY.Client.Models.APIModel.Response.PackTask; using BBWY.Client.Models.PackTask; using BBWY.Common.Http; using BBWY.Common.Models; using System; using System.Collections.Generic; using System.Net.Http; using System.Text; namespace BBWY.Client.APIServices { public class PackServiceService : BaseApiService,IDenpendency { public PackServiceService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) { } public ApiResponse SearchAll() { return SendRequest(globalContext.QKApiHost, "api/PackService/SearchAll", null , null, HttpMethod.Get); } public ApiResponse Add(PackServiceDTO consumable) { return SendRequest(globalContext.QKApiHost, "api/PackService/Add", consumable , null, HttpMethod.Post); } public ApiResponse Edit(PackServiceDTO consumable) { return SendRequest(globalContext.QKApiHost, "api/PackService/Edit", consumable , null, HttpMethod.Post); } public ApiResponse Deleted(long id) { return SendRequest(globalContext.QKApiHost, "api/PackService/Deleted", new { id = id } , null, HttpMethod.Get); } } }