Beispiel #1
0
        public async Task <IActionResult> Delete(int id)
        {
            var workCenter = await _workCenterService.FindAsync(id);

            if (workCenter is null)
            {
                return(NotFound());
            }

            await _workCenterService.DeleteAsync(workCenter);

            return(Ok());
        }