public ActionResult Edit(PostCategory category)
        {
            ValidateCategory(category);

            if (ModelState.IsValid)
            {
                _categoryRepository.Update(category);
                return(RedirectToAction("Details", new { Id = category.Id }));
            }
            return(View(category));
        }
 public void Update(PostCategory postCategory)
 {
     _postCategoryRepository.Update(postCategory);
 }