public virtual ActionResult AddHours(SpentTimeOnProject model)
 {
     return Handle(model, SpentTimeService.SpentTimeOnProject,
         RedirectToAction(MVC.Projects.View(model.ProjectId)),
         RedirectToAction(MVC.Projects.AddHours(model.ProjectId)));
 }
        public virtual ActionResult AddHours(int? projectId)
        {
            if (projectId == null)
            {
                return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
            }

            var model = new SpentTimeOnProject();
            model.ProjectId = projectId.Value;

            ViewBag.EmployeesList = new SelectList(EmployeeService.GetAll(Query.ForEmployee()), "EmployeeId", "FullName");
            ViewBag.Project = ProjectService.GetByIdEx(model.ProjectId, new ProjectInclude().Customer());
            return View(model);
        }