public async Task <IHttpActionResult> login(login log) { try { return(Ok(await userObj.getUser(log.username, log.password))); } catch (Exception ex) { return(Content(HttpStatusCode.NotFound, ex.Message)); } }