public void AddUser(User obj) { using (var db = new AbhijeetDbEntities()) { db.Users.Add(obj); db.SaveChanges(); } }
public Object UserList() { using (var db = new AbhijeetDbEntities()) { var data = db.Users.ToList(); return(data); } }