Esempio n. 1
0
        public ActionResult FakerCreate(FakerAmountViewModel faker)
        {
            if (ModelState.IsValid)
            {
                var clientRepo = new PatientRepository();
                clientRepo.ClientFakerInsert(faker.Amount);

                return RedirectToAction("List");
            }

            ModelState.AddModelError(null, "Podaj właściwą liczbę rekordów");
            return View(faker);
        }
Esempio n. 2
0
        public ViewResult FakerCreate()
        {
            var amount = new FakerAmountViewModel();

            return View(amount);
        }