public IActionResult ProcessAction(ProcessViewModel model) { if (ModelState.IsValid) { var dataInJson = JsonConvert.SerializeObject(model).ToString(); cookieHelper.SetCookie(dataInJson, CookieKeys.ProcessKey); return(RedirectToAction("ProcessActionType")); } return(View()); }
public IActionResult ProcessAction(ProcessViewModel model) { cookieHelper.SetCookie("test value", CookieKeys.ProcessKey); return(View()); }