public ActionResult EditCategory(MvcCategory category) { if (ModelState.IsValid) { categories.Update(CategoryMapper.GetBLLEntity(category)); return(RedirectToRoute("Categories")); } return(View()); }
public BLLCategory Get(int id) { return(CategoryMapper.GetBLLEntity(uow.Categories.GetById(id))); }