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