コード例 #1
0
        public IActionResult CashInsert(CashboxInputDto cashboxInputDto)
        {
            _cashboxService.Insert(new Cashbox {
                CashTypeId    = cashboxInputDto.CashTypeItemList[0],
                TotalQuantity = cashboxInputDto.TotalQuantity
            }
                                   );

            FireAndForgetJobs.GetCurrencyJob();
            return(View("CashInsert", GetViewModelData()));
        }
コード例 #2
0
        public IEnumerable <WeatherForecast> Get()
        {
            for (int i = 0; i < 10; i++)
            {
                FireAndForgetJobs.SendMailJob(new Entities.MailMessageDto {
                    Body = "Hangfire", From = "*****@*****.**", Subject = "Hangfire Test", To = "*****@*****.**"
                });
            }
            var rng = new Random();

            return(Enumerable.Range(1, 5).Select(index => new WeatherForecast
            {
                Date = DateTime.Now.AddDays(index),
                TemperatureC = rng.Next(-20, 55),
                Summary = Summaries[rng.Next(Summaries.Length)]
            })
                   .ToArray());
        }
コード例 #3
0
        public IActionResult Signup()
        {
            FireAndForgetJobs.SendEmailToUserJob("12359778", "Welcome to my blog");

            return(View());
        }