public ApplicationGroup Delete(int id)
        {
            var appGroup = _appGroupRepository.GetSingleById(id);

            //xoá các roles thuộc group
            _appRoleGroupRepository.DeleteMulti(s => s.GroupId == id);
            //xoá các user thuộc group
            _appUserGroupRepository.DeleteMulti(s => s.GroupId == id);
            return(_appGroupRepository.Delete(appGroup));
        }
Esempio n. 2
0
        public ApplicationGroup Delete(int id)
        {
            var appGroup = this._appGroupRepository.GetSingleById(id);

            return(_appGroupRepository.Delete(appGroup));
        }
        public async Task <ApplicationGroup> Delete(int id)
        {
            var appGroup = this._appGroupRepository.GetSingleById(id);

            return(await Task.FromResult(_appGroupRepository.Delete(appGroup)));
        }
Esempio n. 4
0
        public void Delete(int id)
        {
            var appGroup = FindById(id);

            _appGroupRepository.Delete(appGroup);
        }
Esempio n. 5
0
 public void Delete(int id)
 {
     _applicationGroupRepository.Delete(id);
 }
 public ApplicationGroup Delete(int id)
 {
     return(_appGroupRepository.Delete(id));
 }