public virtual async Task <BaseApiResponse <IEnumerable <T> > > Get(IEnumerable <KeyValuePair <string, object> > dictionary = null)
 {
     return(await ApplicationHttpClient.HttpSendAsync <IEnumerable <T> >(
                CombineExtension.UrlCombine(BaseUrl, Endpoint),
                queryParameters : dictionary
                ));
 }
        protected async Task <BaseApiResponse <T> > Get <T>(int id) where T : BaseComponent, new()
        {
            var dictionary = new Dictionary <string, object>();

            dictionary.Add("id", id);
            dictionary.Add("type", (int)new T().Type);
            return(await ApplicationHttpClient.HttpSendAsync <T>(CombineExtension.UrlCombine(BaseUrl, Endpoint), queryParameters : dictionary));
        }
        private async Task <BaseApiResponse <T> > Get <T>
            (string endpoint, ComponentTypeEnumeration type)
        {
            var dictionary = new Dictionary <string, object>();

            dictionary.Add("type", (int)type);
            return(await ApplicationHttpClient.HttpSendAsync <T>(CombineExtension.UrlCombine(BaseUrl, endpoint),
                                                                 queryParameters : dictionary));
        }
        public async Task <BaseApiResponse> Delete(int assemblyId)
        {
            var dictionary = new Dictionary <string, object>();

            dictionary.Add("assemblyId", assemblyId);
            return(await ApplicationHttpClient.HttpSendAsync <object>(
                       CombineExtension.UrlCombine(BaseUrl, Endpoint),
                       queryParameters : dictionary, method : HttpMethod.Delete));
        }
 public async Task <BaseApiResponse <AssemblyComponent> > Put(UpdateAssemblyComponentVM model)
 {
     return(await ApplicationHttpClient.HttpSendAsync <AssemblyComponent>(
                CombineExtension.UrlCombine(BaseUrl, Endpoint), subEndPoint,
                data : model, method : HttpMethod.Put));
 }
 public async Task <BaseApiResponse <Assembly> > Post(Assembly model)
 {
     return(await ApplicationHttpClient.HttpSendAsync <Assembly>(
                CombineExtension.UrlCombine(BaseUrl, Endpoint),
                data : model, method : HttpMethod.Post));
 }
 public async Task <BaseApiResponse <GetAssemblyVM> > Get(int id)
 {
     return(await ApplicationHttpClient.HttpSendAsync <GetAssemblyVM>(
                CombineExtension.UrlCombine(BaseUrl, Endpoint), id.ToString()));
 }
 public async Task <BaseApiResponse <IEnumerable <Assembly> > > Get()
 {
     return(await ApplicationHttpClient.HttpSendAsync <IEnumerable <Assembly> >(CombineExtension.UrlCombine(BaseUrl, Endpoint)));
 }