public ActionResult Create(CategoryViewModel model)
        {
            if (ModelState.IsValid)
                try
                {
                    var category = AdminService.CreateCategory(model.Name);
                    TempData["Success"] = true;
                    return RedirectToAction("Edit", new { category.Id });
                }
                catch (Exception ex)
                {
                    // Add ((System.Data.Entity.Validation.DbEntityValidationException)ex).EntityValidationErrors to Watch and examine
                    throw ex;
                }

            return View(model);
        }
        public ActionResult Edit(CategoryViewModel model)
        {
            if (ModelState.IsValid)
                try
                {
                    var cultures = model.Cultures.Select(x => new CategoryCulture { CultureId = x.CultureId, Name = x.Name });
                    AdminService.UpdateCategory(model.Id, cultures);
                    TempData["Success"] = true;
                    return RedirectToAction("Index");
                }
                catch (Exception ex)
                {
                    // Add ((System.Data.Entity.Validation.DbEntityValidationException)ex).EntityValidationErrors to Watch and examine
                    throw ex;
                }

            return View(model);
        }