コード例 #1
0
        public async Task <ActionResult <Trainer> > Delete(int id)
        {
            var entity = await _trainerService.DeleteTrainersAsync(id);

            if (entity == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(entity));
            }
        }