Exemplo n.º 1
0
        public ActionResult Create(FormCollection collection)
        {
            var instance = new Organizacion();
            TryUpdateModel(instance);

            if (!ModelState.IsValid)
                return View(instance);

            _repository.Add(instance);

            return RedirectToAction("Index");
        }
Exemplo n.º 2
0
        public ActionResult Create()
        {
            var instance = new Organizacion();

            return View(instance);
        }