Amss.Boilerplate.Api.Common.UnitOfWorkAttribute.RequestState.End C# (CSharp) Method

End() public method

public End ( object response ) : void
response object
return void
            public void End(object response)
            {
                try
                {
                    if (this.IsTransactional)
                    {
                        this.CompleteTransaction(response);
                    }
                }
                finally
                {
                    this.UnitOfWork.Dispose();
                    this.UnitOfWork = null;
                }
            }