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)); }
public ViewResult FakerCreate() { var amount = new FakerAmountViewModel(); return(View(amount)); }