コード例 #1
0
        public static void Execute(ChangeStepRequest request)
        {
            DbHelper.ChangeStep(request.Id, request.Step);

            if (request.Step == 4)
            {
                var command = DbHelper.GetPositionCommand(Guid.Parse(request.Id));

                command.ForEach(x => {
                    SendEmailBLL.SendEmail("Окончание турнира", $"Турнир \"{DbHelper.GetTurnamentName(Guid.Parse(request.Id))}\" завершен.", DbHelper.GetAccountEmail(x.id_account));
                });
            }
        }
コード例 #2
0
 public void ChangeStep(ChangeStepRequest request) => ChangeStepBLL.Execute(request);