public bool Update(BllBlogEntity item) { var blog = _blogRepository.GetById(item.Id); if (blog == null) { return(false); } _blogRepository.Update(item.ToDal()); _unitOfWork.Commit(); return(true); }
public void Create(BllBlogEntity blog) { _blogRepository.Create(blog.ToDal()); _unitOfWork.Commit(); }