Esempio n. 1
0
        public IActionResult Add(AddLocationViewModel addLocationViewModel)
        {
            if (!ModelState.IsValid)
            {
                return(View(addLocationViewModel));
            }

            _meetingService.AddLocation(addLocationViewModel.Location);
            return(RedirectToAction(nameof(Index)));
        }