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