public ActionResult Create(CreateEditViewModel model) { var productCategory = new ProductCategory(); mapper.Map(model, productCategory); try { productCategoryProvider.AddProductCategory(productCategory); } catch (Exception ex) { return(HandleException(ex)); } var jsonViewModel = new AjaxViewModel(true, model, null); return(Json(jsonViewModel)); }