コード例 #1
0
        public override OperationObject execute(SmartSoftwareBazaEntities entities)
        {
            System.Data.Objects.ObjectParameter rez = new System.Data.Objects.ObjectParameter("ukupnoZaradjeno", System.Type.GetType("System.Double"));

            if (this.IstorijaKupovineDataSelect != null)
            {
                entities.IstorijaKupovineZaradjenoDanas(this.IstorijaKupovineDataSelect.datumDanas, this.IstorijaKupovineDataSelect.datumSutra, rez);
            }

            double ukupnoZaradjeno = Convert.ToDouble(rez.Value);

            Object[] niz = new Object[1];
            niz[0] = ukupnoZaradjeno;
            OperationObject opObj = new OperationObject();

            opObj.Niz     = niz;
            opObj.Success = true;
            return(opObj);
        }