public async Task <IResultModel> Delete(int id) { if (!await _repository.ExistsAsync(id)) { return(ResultModel.NotExists); } var result = await _repository.DeleteAsync(id); return(ResultModel.Result(result)); }
public async Task <IResultModel> Delete(int id) { if (!await _repository.ExistsAsync(id)) { return(ResultModel.NotExists); } var result = await _repository.DeleteAsync(id); return(ResultModel.Result(result)); }