public IActionResult PutEducation(int id, [FromBody] Education data) { try { var res = _repository.UpdateEducation(id, data); if (!res) { return(Conflict(409)); } return(Ok(res)); } catch (Exception error) { return(BadRequest(error)); } }