Beispiel #1
0
        public IActionResult Add(Segment segment)
        {
            var result = _segmentService.Add(segment);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }