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

            return(ResultModel.Result(result));
        }
Пример #2
0
 public Task <IResultModel> Add(ResourceDetailAddModel model)
 {
     return(_service.Add(model));
 }