Exemplo n.º 1
0
        public async Task <IActionResult> Create([Bind("Name,Address1,City,County,Country,PostCode,Latitude,Longitude")] AddPlaceViewModel placeModel)
        {
            if (ModelState.IsValid)
            {
                await _placesService.AddNewPlace(placeModel);

                return(RedirectToAction("Index"));
            }

            return(View(placeModel));
        }