/// <summary> /// Get an entity from the repository by id. /// </summary> /// <param name="id">The id parameter.</param> /// <returns> /// Return an entity, or null case the entity does not exists. /// </returns> public TEntity GetById(object id) { return(m_domainContext.GetById <TEntity>(id)); }