Exemplo n.º 1
0
        private Models.Tourney SetupChanges(Models.Tourney tourney, EditTourneyEventArgs args)
        {
            tourney.Name   = args.Model.Name;
            tourney.Status = args.Model.Status;

            return(tourney);
        }
Exemplo n.º 2
0
        private void View_EditTourney(object sender, EditTourneyEventArgs e)
        {
            var product = this.service.GetById(e.Model.Id);

            if (product != null)
            {
                product = this.SetupChanges(product, e);

                this.service.EditTourney(product);
            }
        }