Beispiel #1
0
        public async Task <IActionResult> Add(StationDto dto)
        {
            if (ModelState.IsValid)
            {
                var result = await _stationservice.AddAsync(dto);

                if (result.IsNotBlank())
                {
                    return(RedirectToAction("Index"));
                }
            }
            return(View(dto));
        }