public void Remove_Pin(int id) { try { mmoDataContext db = new mmoDataContext(); Pinterest prod = (from p in db.Pinterests where p.Id == id select p).SingleOrDefault(); db.Pinterests.DeleteOnSubmit(prod); db.SubmitChanges(); } catch (Exception ex) { } }
partial void DeletePinterest(Pinterest instance);
partial void UpdatePinterest(Pinterest instance);
partial void InsertPinterest(Pinterest instance);