public Entities.Paycheck GetPaycheck(string userid, string type) { 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}/getpaycheck/{1}/{2}", location, userid, type)).Result; } Entities.Paycheck returnedItem = new Entities.Paycheck(); if (response.StatusCode == HttpStatusCode.OK) { returnedItem = response.Content.ReadAsAsync <Entities.Paycheck>().Result; } return(returnedItem); }
public void Delete(Entities.Paycheck paycheck) { throw new NotImplementedException(); }
public System.Net.Http.HttpResponseMessage Put(Entities.Paycheck paycheck) { throw new NotImplementedException(); }