public User Get(int id) { using (SBPMSystemEntities entities = new SBPMSystemEntities()) { entities.Configuration.ProxyCreationEnabled = false; return(entities.Users.FirstOrDefault(e => e.user_ID == id)); } }
public IEnumerable <User> Get() { using (SBPMSystemEntities entities = new SBPMSystemEntities()) { entities.Configuration.ProxyCreationEnabled = false; return(entities.Users.ToList()); } }