Beispiel #1
0
        public bool SaveEntity()
        {
            bool saved = false;

            try
            {
                AddNewEntity();
                ScatterEntityValues();
                orden.Save();
                saved = orden.Id > 0;
            }
            catch (Exception)
            {
                saved = false;
            }

            return(saved);
        }
Beispiel #2
0
 public void AddNewEntity()
 {
     orden = new Ordenes();
     orden.Save();
 }