예제 #1
0
        //[HttpPost]

        public ActionResult Create(PhonebookViewModel viewModel)
        {
            if (!ModelState.IsValid)
            {
                ModelState.AddModelError("", "Phonebook Problem");
                return(View());
            }

            _phonebookService.CreatePhonebook(viewModel);
            return(View());
        }