public IActionResult PostEducationalInstitution(EducationalInstitution data) { try { var res = _repository.AddEducationalInstitution(data); if (res == -1) { return(Conflict(409)); } return(Ok(res)); } catch (Exception error) { return(BadRequest(error)); } }