Ejemplo n.º 1
0
        public ActionResult Create(BankAccountViewModel bankAccount)
        {
            if (ModelState.IsValid)
            {
                if (bankAccount != null)
                {
                    var bankAccountDTO = CustomMapper<BankAccountViewModel, BankAccountDTO>.Map(bankAccount);
                    _service.CreateNew(bankAccountDTO);

                    return RedirectToAction("Index");
                }
            }

            return HttpNotFound("Can't create bank account");
        }