/// <summary> /// Updates the category /// </summary> private void UpdateCategory() { Category category = UnitOfWork.CategoryRepository.FindById(Dto.Id); JsonOfTheEntity = CMapper.CreateJson(category); CMapper.MapDTO(category, Dto, UnitOfWork); UnitOfWork.CategoryRepository.Update(category); }