public static void Update(Rio_FBLogin rio_FBLogin) { using (Entities db = new Entities()) { db.Entry(rio_FBLogin).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); } }
public static void Insert(Rio_FBLogin rio_FBLogin) { using (Entities db = new Entities()) { db.Rio_FBLogin.Add(rio_FBLogin); db.SaveChanges(); } }