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

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
 public async Task <OperationResult> Delete(int id)
 {
     return(await _segmentService.Delete(id));
 }