Beispiel #1
0
        public bool Update(string Identity, string Position, string Name, string Last_Name, string Access_Level, string KeyPass)
        {
            var UpdateMaker = register.RegisterData(Identity);
            var ID          = Convert.ToInt32(Identity);

            if (UpdateMaker == true)
            {
                Ins.UpdateQuery(ID, Position, Name, Last_Name, Access_Level, KeyPass);
                return(true);
            }
            else
            {
                Ins.ADDQuery(ID, Position, Name, Last_Name, Access_Level, KeyPass);
                return(false);
            }
        }