// GET: Country/Details/5 public ActionResult Details(int id = 0) { if (id == 0) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CompanyViewModel companyViewModel = CompanyServices.GetByID(id); if (companyViewModel == null) { return(HttpNotFound()); } return(View(companyViewModel)); }