Exemple #1
0
        public IEnumerable <user_sign_in_Result> GetUser([FromBody] user_sign_in_Result user)
        {
            var ob    = db.user_sign_in(user.uid);
            int count = ob.Count <user_sign_in_Result>();

            if (count == 0)
            {
                string username = UsernameCreater(user.fullname, user.uid);
                db.user_sign_up(user.uid, username, user.photourl, user.fullname, System.DateTime.Now);
            }

            return(db.user_sign_in(user.uid));
        }