Exemplo n.º 1
0
        public IActionResult InsertStudent(InsertStudentRequest request)
        {
            var response = studentsServiceDb.InsertStudent(request);

            if (response == null)
            {
                return(BadRequest("Such student has already exists in db"));
            }
            return(Ok(response));
        }