public async Task <IResultModel> Add(ResourceFilterAddModel model) { var entity = _mapper.Map <ResourceFilterEntity>(model); var result = await _repository.InsertAsync(entity); return(ResultModel.Result(result)); }
public Task <IResultModel> Add(ResourceFilterAddModel model) { return(_service.Add(model)); }