public ActionResult RegisterNew()
 {
     var model = new CategoryViewModel(new Category());
     return View("Edit", model);
 }
 public ActionResult Save(CategoryViewModel model)
 {
     _categoryLogic.Save(model.Category);
     return RedirectToAction("Index");
 }
 public ActionResult Edit(long id)
 {
     var categeory = _categoryLogic.GetCategory(id);
     var model = new CategoryViewModel(categeory);
     return View(model);
 }