public IActionResult CashInsert(CashboxInputDto cashboxInputDto) { _cashboxService.Insert(new Cashbox { CashTypeId = cashboxInputDto.CashTypeItemList[0], TotalQuantity = cashboxInputDto.TotalQuantity } ); FireAndForgetJobs.GetCurrencyJob(); return(View("CashInsert", GetViewModelData())); }
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()); }
public IActionResult Signup() { FireAndForgetJobs.SendEmailToUserJob("12359778", "Welcome to my blog"); return(View()); }