Example #1
0
        public ActionResult RecordVisit2(int id, DateTime datetime, int peopleId)
        // id = OrganizationId
        {
            if (!Authenticate())
            {
                return(Content("not authorized"));
            }

            var u = CurrentDatabase.Users.Single(uu => uu.Username == AccountModel.UserName2);

            var mid     = RecordAttend2Extracted(id, peopleId, true, datetime, u);
            var meeting = CurrentDatabase.LoadMeetingById(mid);

            return(new RollListResult(meeting, peopleId));
        }
Example #2
0
        public ActionResult RollList(int id, DateTime datetime)
        {
            if (!Authenticate())
            {
                return(Content("not authorized"));
            }

            var u = CurrentDatabase.Users.Single(uu => uu.Username == AccountModel.UserName2);

            DbUtil.LogActivity($"iphone RollList {id} {datetime:g}");

            var mid     = CurrentDatabase.CreateMeeting(id, datetime);
            var meeting = CurrentDatabase.LoadMeetingById(mid);

            return(new RollListResult(meeting));
        }