public async Task <ActionResult> Delete(object id) { _trainingTypeService.Delete(id); await _unitOfWork.CommitAsync(); return(new DeleteSuccessResult()); }
public async Task <ResponseModel> Delete([FromBody] TrainingTypeModel model) { var response = await _trainingTypeService.Delete(model); return(response); }