public async Task <IActionResult> Add(SmtpDto dto) { if (ModelState.IsValid) { var result = await _SmtpService.AddAsync(dto); if (result.IsNotBlank()) { return(RedirectToAction("Index")); } } return(View(dto)); }