public async Task <Result <Response> > Delete(DeleteConvertJobStatusRequest request) { const string api = "api/StatusJobConverter/Delete"; var result = await _owner.PostAsync <DeleteConvertJobStatusRequest, Response>(api, request); return(result); }
public Response Delete(DeleteConvertJobStatusRequest request) { if (request == null) { throw new ArgumentNullException("request"); } var cache = ServiceHelper.Cache; StatusJobDataRunner.DeleteJob(cache, request.UserToken, request.JobToken); return(new Response()); }