예제 #1
0
        public async Task <int> DeleteRoleAsync(Guid id)
        {
            var role = await _dal.QueryAsync(id);

            if (role == null)
            {
                return(-2);
            }

            return(await _dal.DeleteAsync(role));
        }