Example #1
0
        public ActionResult Decline(int id, string reason)
        {
            var tasks = new TaskModel();

            tasks.DeclineTask(id, reason);
            return(Redirect($"/Task/Detail/{id}"));
        }
Example #2
0
 public ActionResult Decline(int id, string reason)
 {
     TaskModel.DeclineTask(id, reason, CurrentDatabase.Host, CurrentDatabase);
     return(RedirectToAction("Index", new { id }));
 }
Example #3
0
 public ActionResult Decline(int id, string reason)
 {
     TaskModel.DeclineTask(id, reason);
     return(RedirectToAction("Index", new { id }));
 }