}
newMilestone.project = project;
newMilestone.dueDate = JodaDateUtil.lastSecondOfDay(newMilestone.dueDate);
Milestone.create(newMilestone);
Attachment.moveAll(UserApp.currentUser().asResource(), newMilestone.asResource());
return redirect(routes.MilestoneApp.milestone(userName, projectName, newMilestone.id));
}
}
private static void validate(Project project, Form<Milestone> milestoneForm) {