public async Task <bool> EditPublisherAsync(Models.Publisher publisher)
        {
            HttpClient          client   = HttpClients.GetInstance();
            HttpResponseMessage response = await client.PutAsJsonAsync("publishers/update/", publisher);

            if (!response.IsSuccessStatusCode)
            {
                return(false);;
            }
            return(true);
        }
        public async Task <Models.Publisher> GetPublisherAsync(int publisherId)
        {
            HttpClient client = HttpClients.GetInstance();

            Models.Publisher    publisher = null;
            HttpResponseMessage response  = await client.GetAsync("publishers/getbyid/" + publisherId);

            if (response.IsSuccessStatusCode)
            {
                publisher = await response.Content.ReadAsAsync <Models.Publisher>();
            }
            return(publisher);
        }