public ActionResult Index(int projectId, int userId, CheckInInfo checkInInfo)
        {
            Checkin checkin = CheckInHelper.SaveCheckIn(projectId, userId, checkInInfo);

            EmailHelper.SendEmail(checkin);

            return Json(new CheckInResponse("Checkin recorded, email sent"));
        }
        internal static Checkin SaveCheckIn(int projectId, int userId, CheckInInfo checkInInfo)
        {
            var context = new trackgitentitycontext();

            var checkIn = new Checkin
                              {
                                  Project = context.Projects.First(p => p.Id == projectId),
                                  User = context.Users.First(u => u.Id == userId),
                                  Comment = checkInInfo.Comment
                              };

            context.AddToCheckins(checkIn);

            context.SaveChanges();

            return checkIn;
        }