public IQueryable <profile> GetAllProfile(int id) { PCDBContext ctx = new PCDBContext(); return(ctx.profiles.Where(c => c.Id == id).Select(e => e)); }
public IQueryable <profile> GetAllProfile() { PCDBContext ctx = new PCDBContext(); return(ctx.profiles); }