public ActionResult SetCulture(string culture, string returnUrl)
        {
            var currentUser = _orchardServices.WorkContext.CurrentUser;

            if (currentUser != null)
            {
                var userRecord = _userPartRepository.Get(currentUser.Id);
                userRecord.CultureRecord = _cultureRepository.Table.Where(c => c.Culture == culture).First();
                _userPartRepository.Update(userRecord);
            }
            _cookieCultureService.SetCulture(culture);
            return(this.RedirectLocal(returnUrl));
        }
 public ActionResult SetCulture(string culture, string returnUrl)
 {
     _cookieCultureService.SetCulture(culture);
     return(this.RedirectLocal(MakeUniqueUrl(returnUrl)));
 }