public BlogModuleModel GetById(long tid) { var result = _unitOfWork.BlogsRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.BlogEntityMapper(result); return(resultModel); } return(null); }
public BlogModuleModel GetByBlogNameKeyword(string keywords) { var result = _unitOfWork.BlogsRepository.Get(a => a.blogkeywords == keywords); if (result != null) { var resultModel = GsMapperConfig.BlogEntityMapper(result); return(resultModel); } return(null); }