public async Task <IActionResult> UpdateNew(PreviewNewViewModel input) { if (!this.ModelState.IsValid) { return(View(input)); } await newService.UpdateNew(input); return(this.RedirectToAction("PreviewNew", new { id = input.Id })); }
public async Task <IActionResult> UpdateNew(PreviewNewViewModel input) { if (!this.ModelState.IsValid) { return(View(input)); } await newService.UpdateNew(input); return(this.RedirectToAction("PreviewNew", new { id = input.Id })); }