public async Task <IHttpActionResult> DeleteUser(int userID) { var user = await db.Users.FirstOrDefaultAsync((u) => u.UserID == userID); if (user == null) { return(NotFound()); } await db.DeleteUser(userID); return(Ok()); }