Exemple #1
0
        public object LocationInfoForJson(Location location)
        {
            if (location == null)
            {
                return(null);
            }

            var isSingleName = UserSession.CurrentElection.IsSingleNameElection;
            var sum          = new BallotHelper().BallotCount(location.LocationGuid, isSingleName);

            return(new
            {
                Id = location.C_RowId,
                TallyStatus = LocationStatusEnum.TextFor(location.TallyStatus),
                TallyStatusCode = location.TallyStatus,
                location.ContactInfo,
                location.BallotsCollected,
                location.Name,
                BallotsEntered = sum,
                IsOnline = location.IsTheOnlineLocation,
                IsImported = location.IsTheImportedLocation,
                location.IsVirtual,
                IsPhysical = !location.IsVirtual,
            });
        }
 protected BallotModelCore()
 {
     _helper = new BallotHelper();
 }
Exemple #3
0
 public BallotModelCore()
 {
     _helper = new BallotHelper();
 }