public ActionResult Create(CategoryModel categoryModel)
        {
            var category = _mappingEngine.Map<CategoryModel, Category>(categoryModel);
            _repository.Create<Category>(category);

            return RedirectToAction("Index", "Category");
        }
 public ActionResult Edit(CategoryModel model, int id)
 {
     if (ModelState.IsValid)
     {
         var category = _mappingEngine.Map<CategoryModel, Category>(model);
         _repository.Update(category);
         return RedirectToAction("index");
     }
     return View("Create", model);
 }