예제 #1
0
        public IActionResult Generate([FromBody] GenerateRequest request)
        {
            var response = service.Generate(request);

            #if DEBUG
            Thread.Sleep(1500);
            #endif
            return(Ok(response));
        }
        public ActionResult GenerateTable()
        {
            try
            {
                generateService.Validate();
                generateService.Generate();
                return(RedirectToAction("Index"));
            }
            catch (NullReferenceException e)
            {
                ViewBag.Error = "Duombazėje nėra tokių indeksų: " + e.Source;

                return(RedirectToAction("Index", "Home"));
            }
        }