コード例 #1
0
        public bool OkunmaSayisiArttir(PostDTO model)
        {
            Post PostEntity = PostRepo.IdIleGetir(model.PostDtoId);

            PostEntity.ViewCount = PostEntity.ViewCount + 1;
            return(PostRepo.Guncelle(PostEntity));
        }
コード例 #2
0
        public bool Guncelle(CategoryDTO ModelDto)
        {
            Category CategoryEntity = CategoryRepo.IdIleGetir(ModelDto.CategoryDtoId);

            CategoryEntity.Id          = ModelDto.CategoryDtoId;
            CategoryEntity.Name        = ModelDto.NameCategoryDto;
            CategoryEntity.SeoCategory = ModelDto.SeoCategoryDTO;
            CategoryEntity.Description = ModelDto.DescriptionCategoryDto;

            return(CategoryRepo.Guncelle(CategoryEntity));
        }