Exemplo n.º 1
0
        public void Edit(int ID, ScoreTitleModel viewModel)
        {
            ScoreTitle selectedScoreTitle = _ScoreTitle.Find(ID);

            selectedScoreTitle.Description = viewModel.Description;
            selectedScoreTitle.Title       = viewModel.Title;
        }
Exemplo n.º 2
0
        public void Add(ScoreTitleModel viewModel)
        {
            var ScoreTitle = new ScoreTitle
            {
                Description = viewModel.Description,
                Title       = viewModel.Title
            };

            _ScoreTitle.Add(ScoreTitle);
        }