public bool Save(GeneralCategory generalCategory)
        {
            int rowAffected = generalCategoryRepository.Save(generalCategory);

            bool isSaved = rowAffected > 0;

            return(isSaved);
        }
Пример #2
0
        public bool Save(GeneralCategory obj)
        {
            // save code ...

            int  rowAffected = _Repository.Save(obj);
            bool isSaved     = rowAffected > 0;

            return(isSaved);
        }