public ActionResult Create(CategoryModel model)
 {
     try
     {
         // TODO: Add insert logic here
         if (model == null)
             return View(model);
         var category = Mapper.Map<CategoryModel, Category>(model);
         _categoryService.Insert(category);
         return RedirectToAction("Index");
     }
     catch
     {
         return View(model);
     }
 }
 //
 // GET: /Category/Create
 public ActionResult Create()
 {
     var model = new CategoryModel();
     return View(model);
 }