public ActionResult Add()
        {
            SetSessionVariable();
            SeatUsageAddViewModel model = new SeatUsageAddViewModel();

            return(View(model));
        }
        public ActionResult Add(SeatUsageAddViewModel seatUsageAddVM)
        {
            SeatUsage seatUsage = seatUsageAddVM.GetObject();

            SetSessionVariable();

            using (HttpClient client = new HttpClient())
            {
                client.BaseAddress = new Uri(Common.Instance.ApiSeatUsageControllerName);
                var posttask = client.PostAsJsonAsync <SeatUsage>(Common.Instance.ApiSeatUsageAdd, seatUsage);
                posttask.Wait();

                var result = posttask.Result;
                if (result.IsSuccessStatusCode)
                {
                    var rs = result.Content.ReadAsAsync <ServiceResult <SeatUsage> >().Result;
                }
            }
            return(RedirectToAction("List"));
        }