Ejemplo n.º 1
0
        public virtual void SaveOrUpdate()
        {
            Benzin benzin = Benzin.GetByPayed(this.payed_at);

            if (benzin == null)
            {
                this.Save();
            }
            else
            {
                this.Update();
            }
        }
Ejemplo n.º 2
0
 public Control()
 {
     theBenzin     = Benzin.GetAll();
     theGroupMonth = new GroupMonth(theBenzin);
 }