예제 #1
0
        public async Task RunCheckAccess(string userName)
        {
            Console.WriteLine(userName);

            AccessModel accessModel = fromSql.GetAdmins(userName);

            if (accessModel != null)
            {
                #region _
                //if (checkClass.CheckAccess(accessModel) == 0)
                //{
                //    await RunGetOneUser(accessModel);
                //}
                //else
                //{
                //    await RunGetAll(accessModel);
                //}
                #endregion

                accessModel.ChangeVisibility();

                await RunGetAll(accessModel);
            }
            else
            {
                await Clients.Caller.SendAsync("AccessDenide", false);
            }
        }