public static bool save(string number, string message) { db = new SMSDataClassesDataContext(); SMS_QueuedBox que = new SMS_QueuedBox(); que.Message = message; que.Number = number; que.Network = (short)prefixes(number); que.Status = false; try { db.SMS_QueuedBoxes.InsertOnSubmit(que); db.SubmitChanges(); return true; } catch (Exception ex) { return false; } }
partial void DeleteSMS_QueuedBox(SMS_QueuedBox instance);
partial void UpdateSMS_QueuedBox(SMS_QueuedBox instance);
partial void InsertSMS_QueuedBox(SMS_QueuedBox instance);