public async Task <IActionResult> PutProfile(int id, Profile profile) { if (id != profile.ProfileNumber) { return(BadRequest()); } var response = await _db.UpdateProfile(id, profile); return(_responsesService.PutResponse(response)); }