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)); }
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)); }