public async Task <bool> UpdateAsync(FeatureExampleUpdateCommand command) { var featureExample = await Repository.GetByIDAsync(command.ID); Guard.AgainstNull(featureExample, ExceptionArguments.NotFound); Repository.Update(featureExample); return(await _unitOfWork.Value.CommitAsync() > 0); }
public async Task <IActionResult> UpdateAsync(FeatureExampleUpdateCommand command) { return(Ok(await _featureExampleAppService.UpdateAsync(command))); }