public async Task <IActionResult> AddHobby(int id, [FromBody] Hobby hobby) { if (personService.AddNewHobby(id, hobby)) { return(Ok("Hobby has been successfully added.")); } return(BadRequest("Someting went wrong!")); }