public ActionResult ViewJob(Guid company, Guid Job) { if (company == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } //Session["Company"] = id; //Guid cID = Guid.Parse(Session["Company"].ToString()); compJobPoco = compLogic.GetCompanybyIds(company, Job); //CompanyJobPoco companyJobPoco = //companyJobLogic.Get(id.Value); //db.CompanyJobs.Find(id); if (compJobPoco == null) { return(HttpNotFound()); } return(View(compJobPoco)); }