public IHttpActionResult DeleteSession(string sessionKey, int loggedId) { Session session = AuthHandler.DeleteSession(sessionKey, db); if (session == null) { return(NotFound()); } return(Ok(session)); }