Creating ButtonResult method