void OnRegisterButtonClicked(object sender, EventArgs args) { User oUser = new User(); oUser.Name = "Rafi"; oUser.PhoneNo = "245245"; oUser.EmailID = "*****@*****.**"; var iResult = m_oBusinessFacade.RegisterUser(oUser).Result; if (iResult == 0) { DisplayAlert("Error", "USer Registration Failed", "Cancel"); } }