Exemple #1
0
        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);
        }
Exemple #2
0
 public async Task <IActionResult> UpdateAsync(FeatureExampleUpdateCommand command)
 {
     return(Ok(await _featureExampleAppService.UpdateAsync(command)));
 }