Пример #1
0
 public IActionResult Post([FromBody] MentorRequest student)
 {
     if (ModelState.IsValid)
     {
         bool result = repository.AddMentorRequest(student);
         if (result)
         {
             return(Created("AddSkill", student.Id));
         }
         return(StatusCode(StatusCodes.Status500InternalServerError));
     }
     return(BadRequest(ModelState));
 }