/// <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); }
Store IStoreSelector.Get(string storeId) { Guid guid; if (!Guid.TryParse(storeId, out guid)) { CreateErrors.NotValid(storeId, nameof(storeId)); } return(Get(guid)); }