//
        // GET: /Home/
        //[Authorize]
        public ActionResult Index()
        {
            //UserServiceFactory.Create().Insert(new User { Avatar = "Avatar", Confirm = true, Email = "*****@*****.**", FirstName = "Stas", Password = "******", SecondName = "Orlov", Comments = new List<Comment>(), Subscribes = new List<Subscribe>(), VideoPosts = new List<VideoPost>()});

            //var users = UserServiceFactory.Create().GetAll();

            //ViewRes.SharedStrings.Culture = new CultureInfo("RU");

            //var cookie = new HttpCookie("CultureInfo");
            //cookie.Expires = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day + 1);
            //cookie["language"]

            var svsDbContext = new SvsDbContext();
            var res = svsDbContext.Contents.Select(content => content.Language == "language").FirstOrDefault();

            var initializer = new DbInitializer();
            initializer.InitializeDatabase(svsDbContext);

            return View();
        }
 public SvsDbContext Get()
 {
     return _dbContext ?? (_dbContext = new SvsDbContext());
 }