// GET: SubCategorys/Details/5 public ActionResult Details(int id) { var affiliate = HttpContext.Session.GetString(_configuration["AffiliateKey"]); var model = _subCategoryRepository.FindById(id, false, affiliate); return(View(model)); }