示例#1
0
        //To show specific guest deatils with selected id.
        /// <summary>Guestshows the specified identifier.</summary>
        /// <param name="id">The identifier.</param>
        /// <returns>Signle user detials</returns>
        public ActionResult Guestshow(int id)
        {
            GuestListContext guestListContext = new GuestListContext();
            ListOfGuest      guest            = guestListContext.ListOfGuest.Single(x => x.GuestId == id);

            return(View(guest));
        }
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ListOfGuest a = new ListOfGuest();

            a.Show();
            this.Close();
        }