public Entities.Payday GetPayday(int id) { string location = string.Format("{0}{1}", baseURI, "api"); using (HttpClient client = new HttpClient()) { client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); response = client.GetAsync(string.Format("{0}/getpayday/{1}", location, id)).Result; } Entities.Payday returnedItem = new Entities.Payday(); if (response.StatusCode == HttpStatusCode.OK) { returnedItem = response.Content.ReadAsAsync <Entities.Payday>().Result; } return(returnedItem); }
public void Delete(Entities.Payday payday) { throw new NotImplementedException(); }
public System.Net.Http.HttpResponseMessage Put(Entities.Payday payday) { throw new NotImplementedException(); }