a guest Jun 25th, 2019 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- public async Task<ActionResult<T>> Get(int id)
- return this.repository.Find(x => x.Id == id);
- public virtual async Task<TEntity> Find(Func<TEntity,bool> predicate)
- return await Task.Run(()=> context.Set<TEntity>().FirstOrDefault(predicate));
RAW Paste Data