using CloudBuilder.Core.DependencyInjection.Request;
using CloudBuilder.Core.Request;
using CloudBuilder.Core.Service;
using Microsoft.Extensions.DependencyInjection;
using CloudBuilder.Security.Service;
            using CloudBuilder.Core.DatabaseAccessor.Entity;
            using Microsoft.AspNetCore.Http;
            using CloudBuilder.Core.Policy;
            using CloudBuilder.Core.DependencyInjection.Request;
            using CloudBuilder.Security.Data;
            using CloudBuilder.Core.Authorization;
            using CloudBuilder.Security.Entity;
            using CloudBuilder.Security.SearchCriteria;
            using CloudBuilder.Security;
            using System;
            
namespace CloudBuilder.Request.Security
{

public class YesNoPolicyRequest : IRequest
{

private readonly IServiceRequest serviceRequest;
public YesNoPolicyRequest(IServiceRequest serviceRequest)
{
this.serviceRequest = serviceRequest;
}

        public  SelectOption[] FindSelectOption(bool blank)       
                {
return Task.Run(() =>   serviceRequest.PostAsJsonAsync<SelectOption[]>("/YesNoPolicy/FindSelectOption?blank=" + blank.ToString())).GetAwaiter().GetResult();                }

                
}
}