public static CompleteOperation CreateFromSession(HttpSessionStateBase session)
 {
     if (session == null)
     {
         throw new ArgumentNullException("session");
     }
     CompleteOperation operation = session["completeOperation"] as CompleteOperation;
     if (operation == null)
     {
         session["completeOperation"] = operation = new CompleteOperation();
     }
     return operation;
 }
        public static CompleteOperation CreateFromSession(HttpSessionStateBase session)
        {
            if (session == null)
            {
                throw new ArgumentNullException("session");
            }
            CompleteOperation operation = session["completeOperation"] as CompleteOperation;

            if (operation == null)
            {
                session["completeOperation"] = operation = new CompleteOperation();
            }
            return(operation);
        }