public static Detail GetDetails(int id)
        {
            var apiCallTask = DetailApiHelper.Get(id);
            var result      = apiCallTask.Result;

            JObject jsonResponse = JsonConvert.DeserializeObject <JObject>(result);
            Detail  detail       = JsonConvert.DeserializeObject <Detail>(jsonResponse.ToString());

            return(detail);
        }
        public static List <Detail> Get()
        {
            var apiCallTask = DetailApiHelper.GetAll();
            var result      = apiCallTask.Result;

            JArray        jsonResponse = JsonConvert.DeserializeObject <JArray>(result);
            List <Detail> detailList   = JsonConvert.DeserializeObject <List <Detail> >(jsonResponse.ToString());

            return(detailList);
        }
 public static void Delete(int id)
 {
     var apiCallTask = DetailApiHelper.Delete(id);
 }
 public static void Put(Detail detail)
 {
     string jsonDetail  = JsonConvert.SerializeObject(detail);
     var    apiCallTask = DetailApiHelper.Put(detail.DetailId, jsonDetail);
 }