private ActionResult RedirectToProjectDetailsContainingTimeEntry(TimeEntry timeEntry) { return RedirectToAction("Details", "Projects", new { id = timeEntry.ProjectID, month = timeEntry.Day }); }
public ProjectTimeEntry(string _project, TimeEntry _timeEntry) { this.ProjectName = _project; this.TimeEntry = _timeEntry; }
// GET: TimeEntries/Create/1 public ActionResult Create(int projectId, string projectName) { TimeEntry timeEntry = new TimeEntry(); timeEntry.ProjectID = projectId; return View(new ProjectTimeEntry(projectName,timeEntry)); }