public static int SaveData(tbPlane data) { using (DbAirlineEntities obj = new DbAirlineEntities()) { obj.tbPlanes.Add(data); obj.SaveChanges(); return(data.ID); } }
public static int Ins(tbPlane data) { return(SaveData(data)); }