public async Task <IHttpActionResult> EditBio(int userID, string bio) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } if (string.IsNullOrWhiteSpace(bio)) { return(BadRequest()); } var user = await db.Users.FirstOrDefaultAsync((u) => u.UserID == userID); if (user == null) { return(NotFound()); } await db.EditUserBio(userID, bio); return(Ok()); }