private IQueryable <Person> People() { return(_context.Set <Person>()); }
/// <summary> /// To add new person to database /// </summary> /// <param name="entity">People entity</param> /// <returns>Rows inserted</returns> public async Task Create(People entity) { await _dbContext.Set <People>().AddAsync(entity); await _dbContext.SaveChangesAsync(); }
public ICollection <Colour> GetAll() { return(_context.Set <Colour>().ToList()); }