public IActionResult Post([FromBody] MentorTechnology mentortech) { if (ModelState.IsValid) { bool result = repository.AddMentorTechnology(mentortech); if (result) { return(Created("AddMentorTechnology", mentortech.Id)); } return(StatusCode(StatusCodes.Status500InternalServerError)); } return(BadRequest(ModelState)); }