Exemplo n.º 1
0
 public PostCategory GetById(int postCategoryId)
 {
     return(_postCategoryDal.Get(p => p.PostCategoryId == postCategoryId));
 }
Exemplo n.º 2
0
 public IDataResult <PostCategory> GetById(string postCategoryId)
 {
     return(new SuccessDataResult <PostCategory>(_postCategoryDal.Get(p => p.Id == postCategoryId)));
 }