Exemple #1
0
        public ActionResult Edit(TaskInput input)
        {
            Execute(new CreateTaskCommand(input));

            var cookie = new HttpCookie("consultantId", input.ConsultantId.ToString())
            {
                Expires = DateTime.UtcNow.AddDays(365)
            };

            Response.Cookies.Add(cookie);

            return RedirectToAction("New");
        }
Exemple #2
0
 public CreateTaskCommand(TaskInput taskInput)
 {
     _taskInput = taskInput;
 }