public bool SaveEntity() { bool saved = false; try { AddNewEntity(); ScatterEntityValues(); orden.Save(); saved = orden.Id > 0; } catch (Exception) { saved = false; } return(saved); }
public void AddNewEntity() { orden = new Ordenes(); orden.Save(); }