Beispiel #1
0
        public async Task <DeleteStepResponse> Delete(DeleteStepRequest request)
        {
            if (!await batchRepository.DoesBatchExist(request.BatchId))
            {
                throw Err.BatchNotFound(request.BatchId);
            }

            var step = await stepRepository.Get(request.BatchId, request.StepName);

            if (step == null)
            {
                throw Err.StepNotFound(request.StepName);
            }

            await stepRepository.Delete(step.Id);

            return(new DeleteStepResponse());
        }
 public bool Delete(long id)
 {
     return(_step.Delete(id));
 }