Exemple #1
0
        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);
        }
Exemple #2
0
 public void Delete(Entities.Paycheck paycheck)
 {
     throw new NotImplementedException();
 }
Exemple #3
0
 public System.Net.Http.HttpResponseMessage Put(Entities.Paycheck paycheck)
 {
     throw new NotImplementedException();
 }