Exemple #1
0
        public Result <List <GetCountCategoryVM> > GetCountCategory()
        {
            var table = ConvertDataTableToList.BindList <GetCountCategoryVM>(_dataSource.GetCountCategory());

            if (table.Count > 0 || table.Count == 0)
            {
                return(Result <List <GetCountCategoryVM> > .Successful(data : table));
            }
            return(Result <List <GetCountCategoryVM> > .Failure());
        }