Exemplo n.º 1
0
        public async Task <IActionResult> CreateLoadingPlace(LoadingPlace loadingPlace)
        {
            if (!ModelState.IsValid)
            {
                return(await ReturnViewWithPostPutVM());
            }

            await deliveryService.AddLoadingPlace(loadingPlace);

            return(RedirectToAction("IndexLoadingPlace"));
        }