예제 #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);
        }
예제 #2
0
        public ViewResult FakerCreate()
        {
            var amount = new FakerAmountViewModel();

            return View(amount);
        }