Beispiel #1
0
        public string GetUser()
        {
            AlexDBDataContext db = new AlexDBDataContext();
            user u = new user();
            u = db.users.Where(x => (x.username.Equals(this.username) || x.email.Equals(username)) && x.password.Equals(password)).FirstOrDefault<API.user>();

            if (u == null || u.userID == 0) {
                throw new Exception("User not found");
            }
            return JsonConvert.SerializeObject(u);
        }
Beispiel #2
0
 partial void Updateuser(user instance);
Beispiel #3
0
 partial void Deleteuser(user instance);
Beispiel #4
0
 partial void Insertuser(user instance);