コード例 #1
0
        /// <summary>
        ///     Deletes the specified entity identifier.
        /// </summary>
        /// <param name="storeId">The entity identifier.</param>
        /// <exception cref="NotValidException"></exception>
        void IStoreUpdator.Delete(string storeId)
        {
            Guid guid;

            if (!Guid.TryParse(storeId, out guid))
            {
                CreateErrors.NotValid(storeId, nameof(storeId));
            }

            Delete(guid);
        }
コード例 #2
0
        Store IStoreSelector.Get(string storeId)
        {
            Guid guid;

            if (!Guid.TryParse(storeId, out guid))
            {
                CreateErrors.NotValid(storeId, nameof(storeId));
            }

            return(Get(guid));
        }