Пример #1
0
        public async Task <bool> CreateMatchSchedule(MatchScheduleServiceModel matchScheduleServiceModel)
        {
            MatchSchedule matchSchedule = matchScheduleServiceModel.To <MatchSchedule>();

            matchSchedule.MatchStatus.Name = GlobalConstants.MatchStatusActive;

            this.context.MatchSchedules.Add(matchSchedule);
            int result = await this.context.SaveChangesAsync();

            return(result > 0);
        }