예제 #1
0
        public response Insert(int _ID_DOSAR_STADIU)
        {
            response toReturn = Insert();

            if (toReturn.Status)
            {
                this.ID = toReturn.InsertedId;
                DosarStadiuSentinta dssj = new DosarStadiuSentinta();
                dssj.ID_DOSAR_STADIU = _ID_DOSAR_STADIU;
                dssj.ID_SENTINTA     = Convert.ToInt32(this.ID);
                dssj.Insert();
            }

            /*
             * if (this.Solutie != null)
             * {
             *  response toReturnS = Solutie.Insert();
             *  if (toReturnS.Status && toReturnS.InsertedId != null)
             *  {
             *      this.ID_SOLUTIE = toReturnS.InsertedId;
             *      //this.UpdateSentinta();
             *  }
             * }
             */

            return(toReturn);
        }
 public response Insert(DosarStadiuSentinta item)
 {
     return(item.Insert());
 }