public async Task<ActionResult> DeleteConfirmed(int id)
        {
            OpenJob temp = null;
            int store = 0;

            using (var client = new OpenJobServiceClient())
            {
                temp = await client.GetOpenJobById(id);
                store = temp.StoreId;

                await client.DeleteOpenJob(id);

                OpenJob deletedOpenJob = await _client.GetOpenJobById(id);
                if (deletedOpenJob == null)
                {
                    TempData["Message"] = "Job was successfully removed.";
                }
                else
                {
                    TempData["Message"] = "Job was not removed.";
                }
            }

            return RedirectToAction("OpenJobList", store);
        }
        // GET: /OpenJob/Details/5
        public async Task<ViewResult> Details(int jobid)
        {
            OpenJob job = null;
            using (var client = new OpenJobServiceClient())
            {
                job = await client.GetOpenJobById(jobid);
            }

            ViewBag.Approved = job.IsApproved;
            ViewBag.OpenJobId = job.OpenJobsId;

            return View(job);
        }
        public async Task<ActionResult> Delete(int? id)
        {
            OpenJob job = null;

            if (id == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }

            using (var client = new OpenJobServiceClient())
            {
                job = await client.GetOpenJobById(id);
            }

            if (job == null)
            {
                return HttpNotFound();
            }
            return View(job);
        }