Exemplo n.º 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,
            });
        }
Exemplo n.º 2
0
 protected BallotModelCore()
 {
     _helper = new BallotHelper();
 }
Exemplo n.º 3
0
 public BallotModelCore()
 {
     _helper = new BallotHelper();
 }