public ActionResult PunchIntoProject(int projectID)
        {
            var rlt             = new ResultModel();
            var currentDateTime = DateTime.Now;
            var model           = new ProjectActivity()
            {
                UserID    = SessionItems.CurrentUser.UserID,
                StartTime = currentDateTime,
                EndTime   = currentDateTime,
                Status    = ProjectActivityTypes.Open.ToString(),
                ProjectID = projectID,
                Title     = new Project().GetStringValueFromExpression(x => x.id == projectID, x => x.Name)
            };

            try
            {
                rlt = model.Insert();
                rlt.ObjectResult = model;
            }
            catch (Exception e)
            {
                throw e;
            }
            return(new JsonResult()
            {
                Data = rlt
            });
        }
        public ActionResult Create(FormCollection collection)
        {
            try
            {
                // TODO: Add insert logic here
                var model = new ProjectActivity();
                TryUpdateModel(model);

                model.Insert();
                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }