public async Task <IResultModel> Delete(string id) { var entity = await _repository.FirstAsync(id); if (entity == null) { return(ResultModel.NotExists); } var result = await _repository.SoftDeleteAsync(entity); return(ResultModel.Result(result)); }