/// <summary> /// Gets the entity by specified identifier. /// </summary> /// <param name="id">The unique identifier.</param> /// <returns> /// The instance of <see cref="T:HomeCloud.DataStorage.DataAccess.Contracts.Catalog" />. /// </returns> public async Task <Catalog> GetAsync(Guid id) { Catalog result = (await this.context.QueryAsync <Catalog>( GetDirectoryByIDStoredProcedure, new { @ID = id })).FirstOrDefault(); result?.AcceptChanges(); return(result); }