public ActionResult New(DictViewModel model) { if (!ModelState.IsValid) { return(View(model)); } var result = _dictService.Add(model); return(RedirectToAction("Index", "Result", new { state = result, style = "dialog" })); }
public Task <IResultModel> Add(DictAddModel model) { return(_service.Add(model)); }