예제 #1
0
        public async Task <bool> IsAdministrator(string account)
        {
            var data = await _repositoryTB_EL_System_Role.FindSingle(x => x.Account.ToLower() == account.ToLower());

            if (data != null)
            {
                if (data.Character == "Administrator")
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                return(false);
            }
        }
예제 #2
0
        public async Task <TB_EL_Video> GetVideo(long sid)
        {
            var data = await _repositoryTB_EL_Video.FindSingle(x => x.SID == sid);

            return(data);
        }
예제 #3
0
        public async Task <TB_EL_System_Role> GetSystemRole(long sid)
        {
            var data = await _repositoryTB_EL_System_Role.FindSingle(x => x.SID == sid);

            return(data);
        }