Exemplo n.º 1
0
        public ActionResult RegistrateDonation(RegistrateDonationForm form)
        {
            if (!ModelState.IsValid) return View(form);

            var result = _tempDepositoryService
                .RegisterDeposit(
                form.DocumentTitle, form.DocumentSerialNumber, form.Deposit,
                form.DonatorName, form.DonatorSurname, UserInfoHelper.GetUserId());

            ViewBag.Result = result;
            return View();
        }
Exemplo n.º 2
0
 // GET: Registrator
 public ActionResult RegistrateDonation()
 {
     var model = new RegistrateDonationForm();
     return View(model);
 }