Esempio n. 1
0
        private void btnLinkAdd_Click(object sender, EventArgs e)
        {
            _resortLinkService = new ResortLinkService(_resortLinkRepository);
            var link = new ResortLink
            {
                Name = NewLinkName.Text,
                URL = NewUrl.Text,
                ResortID = _resort.ID
            };
            _resortLinkService.Add(link);

            GetResort();
        }
Esempio n. 2
0
        private void btnLinkAdd_Click(object sender, EventArgs e)
        {
            _resortLinkService = new ResortLinkService(_resortLinkRepository);
            var link = new ResortLink
            {
                Name     = NewLinkName.Text,
                URL      = NewUrl.Text,
                ResortID = _resort.ID
            };

            _resortLinkService.Add(link);

            GetResort();
        }
Esempio n. 3
0
        private void btnLinkSave_Click(object sender, EventArgs e)
        {
            _resortLinkService = new ResortLinkService(_resortLinkRepository);
            var link = new ResortLink
            {
                ID = int.Parse(LinkId.Text),
                Name = LinkName.Text,
                URL = Url.Text,
                ResortID = _resort.ID
            };
            _resortLinkService.Update(link);

            GetResort();
        }
Esempio n. 4
0
        private void btnLinkSave_Click(object sender, EventArgs e)
        {
            _resortLinkService = new ResortLinkService(_resortLinkRepository);
            var link = new ResortLink
            {
                ID       = int.Parse(LinkId.Text),
                Name     = LinkName.Text,
                URL      = Url.Text,
                ResortID = _resort.ID
            };

            _resortLinkService.Update(link);

            GetResort();
        }