示例#1
0
        public override OperationObject execute(SmartSoftwareBazaEntities entities)
        {
            System.Data.Objects.ObjectParameter rez = new System.Data.Objects.ObjectParameter("brojProdateOpremeDanas", System.Type.GetType("System.Int32"));


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

            int prodatoOpremeDanas = rez.Value == null ?  0 : Convert.ToInt32(rez.Value);

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

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