//MEMBER TICKET
        //EDIT MemberTicket
        public async Task <IActionResult> EditMemberTicket(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var memberTicket = await _context.MemberTickets.FindAsync(id);

            var gyms = _context.Gyms.ToList();

            if (memberTicket == null)
            {
                return(NotFound());
            }
            var editMemberTicket = new EditMemberTicket();

            editMemberTicket.MemberTicketId = memberTicket.MemberTicketId;
            editMemberTicket.Name           = memberTicket.Name;
            editMemberTicket.Cost           = memberTicket.Cost;
            editMemberTicket.ValidityPeriod = memberTicket.ValidityPeriod;
            editMemberTicket.GymId          = memberTicket.GymId;
            editMemberTicket.Gyms           = new SelectList(gyms, "GymId", "Name");

            return(View(editMemberTicket));
        }
        public async Task <IActionResult> AddMemberTicket()
        {
            var gyms = _context.Gyms.ToList();

            var editMemberTicket = new EditMemberTicket();

            editMemberTicket.Gyms = new SelectList(gyms, "GymId", "Name");
            return(View(editMemberTicket));
        }