Ejemplo n.º 1
0
        public ActionResult Create(Company collection)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    companiesRepository.addCompany(collection);
                }

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View(collection));
            }
        }