public ActionResult Index(int userid, string referrer) { if (referrer == "sharemeal") { Session[referrer] = "sharemeal"; } UserSetting usersetting = _service.GetById(userid); UserSettingsViewModel usvm = Mapper.Map <UserSetting, UserSettingsViewModel>(usersetting); return(View(usvm)); }