public async Task <bool> AddAsync(FeatureExampleAddCommand command) { var featureExample = _mapper.Value.Map <FeatureExample>(command); await Repository.AddAsync(featureExample); return(await _unitOfWork.Value.CommitAsync() > 0); }
public async Task <IActionResult> AddAsync(FeatureExampleAddCommand command) { return(Ok(await _featureExampleAppService.AddAsync(command))); }