public async Task <ActionResult <bool> > GetUser(string id, string pw) { if (await UserExists.Run(id, pw, _context)) { return(true); } return(false); }
public async Task <ActionResult <List <Homework> > > PostHomework([Bind("id,pw")] auth user) { if (await UserExists.Run(user.id, user.pw, userDB)) { GetHomeworks a = new GetHomeworks(_context, userDB, noteCatDB, userCatDB, noteClassDB, user.id); DelHomeworks(); return(await a.Run()); } return(null); }