public async Task <ActionResult> Delete(object id)
        {
            _trainingTypeService.Delete(id);
            await _unitOfWork.CommitAsync();

            return(new DeleteSuccessResult());
        }
Exemplo n.º 2
0
        public async Task <ResponseModel> Delete([FromBody] TrainingTypeModel model)
        {
            var response = await _trainingTypeService.Delete(model);

            return(response);
        }