Example #1
0
        public string AddOrUpdateContextCategory(ContextCategoryView model)
        {
            var newId =
                tradingRepository.AddOrUpdateContextCategory(
                    new ContextCategory
            {
                Id           = model.Id,
                TournamentId = model.TournamentId,
                Name         = model.Name,
                CreatedOn    = model.CreatedOn,
                EndedOn      = model.EndedOn
            });

            return(newId);
        }