C# 클래스 Cofoundry.Web.ITransationScopeExtensions

파일 보기 프로젝트 열기: cofoundry-cms/cofoundry

공개 메소드들

메소드 설명
CompleteIfValidAsync ( ITransactionScope scope, ModelStateDictionary modelState ) : Task

Completes the transaction scope only if the modelState is valid, indicating that no handled or unhandled errors occurred udring execution.

메소드 상세

CompleteIfValidAsync() 공개 정적인 메소드

Completes the transaction scope only if the modelState is valid, indicating that no handled or unhandled errors occurred udring execution.
public static CompleteIfValidAsync ( ITransactionScope scope, ModelStateDictionary modelState ) : Task
scope ITransactionScope
modelState ModelStateDictionary /// The to check for validity, usually accessed via /// controller.ModelState or similar. ///
리턴 Task