public List <Category> GetAll() { return(_categoryDal.GetAll().ToList()); }
public IDataResult <List <Category> > GetAll() { return(new SuccessDataResult <List <Category> >(_categoryDal.GetAll())); }