Beispiel #1
0
        public async Task <IActionResult> Insert([FromBody] MajorDto dto)
        {
            var result = await _majorService.CreateAsync(dto);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }