public ActionResult What(String categoryId, String categorySeo) { var comp = Mapper.Map <IEnumerable <Company>, IEnumerable <CompanyViewModel> >(_companyApp.GetByCategory(categoryId)); // Redirect to proper name if (!categorySeo.Equals(comp.FirstOrDefault().CategoryName.SeoString())) { return(RedirectToActionPermanent("What", new { categoryId = categoryId, categorySeo = comp.FirstOrDefault().CategoryName.SeoString() })); } return(View(comp)); }